All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] qemu/vl.c serial patch termios fix
@ 2006-09-19 21:54 Zach Metzinger
  0 siblings, 0 replies; only message in thread
From: Zach Metzinger @ 2006-09-19 21:54 UTC (permalink / raw)
  To: qemu-devel


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) {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-19 21:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-19 21:54 [Qemu-devel] qemu/vl.c serial patch termios fix Zach Metzinger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.