qemu/vl.c serial patch termios fix
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
vl.c Tue Sep 19 16:43:38 2006 renamed from usr/ports/emulators/qemu/work/qemu-0.8.2/vl.c Tue Sep 19 16:06:35 2006 +2 -2
@@ -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) {