From: Zach Metzinger <zmetzing@warthog.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] qemu/vl.c serial patch termios fix
Date: Tue, 19 Sep 2006 16:54:24 -0500 [thread overview]
Message-ID: <20060919215424.GA97954@raster> (raw)
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) {
reply other threads:[~2006-09-19 21:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060919215424.GA97954@raster \
--to=zmetzing@warthog.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.