summaryrefslogtreecommitdiffstats
path: root/sys/i386/ibcs2/ibcs2_ioctl.c
diff options
context:
space:
mode:
authorjon <jon@FreeBSD.org>2001-07-20 06:00:02 +0000
committerjon <jon@FreeBSD.org>2001-07-20 06:00:02 +0000
commitc3d97bef4d7f5c6ef78bbe34ac08731d7e2a9b0f (patch)
tree9e3f08bbac2f0010657ba46f9cc0552ed4c8986a /sys/i386/ibcs2/ibcs2_ioctl.c
parentbe022bb715b9d24bfff5583de1df5d295f03509c (diff)
downloadFreeBSD-src-c3d97bef4d7f5c6ef78bbe34ac08731d7e2a9b0f.zip
FreeBSD-src-c3d97bef4d7f5c6ef78bbe34ac08731d7e2a9b0f.tar.gz
Fix setting serial baud rate under ibcs2 emulation by moving a line to the
right place. Reported by Jonathan Chen <jonc@pinnacle.co.nz> (someone with the same name who's not me) PR: i386/8414 Submitted by: Jonathan Chen <jonc@pinnacle.co.nz> MFC after: 2 weeks
Diffstat (limited to 'sys/i386/ibcs2/ibcs2_ioctl.c')
-rw-r--r--sys/i386/ibcs2/ibcs2_ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/ibcs2/ibcs2_ioctl.c b/sys/i386/ibcs2/ibcs2_ioctl.c
index 42190d2..4dfa80b 100644
--- a/sys/i386/ibcs2/ibcs2_ioctl.c
+++ b/sys/i386/ibcs2/ibcs2_ioctl.c
@@ -169,6 +169,8 @@ stios2btios(st, bt)
if (l & IBCS2_CLOCAL) r |= CLOCAL;
bt->c_cflag = r;
+ bt->c_ispeed = bt->c_ospeed = s2btab[l & 0x0000000f];
+
l = st->c_lflag; r = 0;
if (l & IBCS2_ISIG) r |= ISIG;
if (l & IBCS2_ICANON) r |= ICANON;
@@ -180,8 +182,6 @@ stios2btios(st, bt)
if (l & IBCS2_TOSTOP) r |= TOSTOP;
bt->c_lflag = r;
- bt->c_ispeed = bt->c_ospeed = s2btab[l & 0x0000000f];
-
bt->c_cc[VINTR] =
st->c_cc[IBCS2_VINTR] ? st->c_cc[IBCS2_VINTR] : _POSIX_VDISABLE;
bt->c_cc[VQUIT] =
OpenPOWER on IntegriCloud