[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] qemu/vl.c serial patch termios fix
From: |
Zach Metzinger |
Subject: |
[Qemu-devel] qemu/vl.c serial patch termios fix |
Date: |
Tue, 19 Sep 2006 16:54:24 -0500 |
User-agent: |
Mutt/1.4.2.1i |
Hi-
The serial routines do not set the proper termios flags for the serial
port so that data can pass unmolested from the emulated environment to
the host serial device. This simple patch fixes that. Tested on a
FreeBSD 6.2 host with Windows XP as the emulated OS.
--- Zach
--- /usr/ports/emulators/qemu/work/qemu-0.8.2/vl.c Tue Sep 19 16:06:35 2006
+++ vl.c Tue Sep 19 16:43:38 2006
@@ -1591,8 +1591,8 @@
cfsetospeed(&tty, spd);
tty.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP
- |INLCR|IGNCR|ICRNL|IXON);
- tty.c_oflag |= OPOST;
+ |INLCR|IGNCR|ICRNL|IXON|IMAXBEL);
+ tty.c_oflag &= ~OPOST; /* Don't do any output processing! */
tty.c_lflag &= ~(ECHO|ECHONL|ICANON|IEXTEN|ISIG);
tty.c_cflag &= ~(CSIZE|PARENB|PARODD|CRTSCTS);
switch(data_bits) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] qemu/vl.c serial patch termios fix,
Zach Metzinger <=