diff options
author | Jonathan Chen <jon@FreeBSD.org> | 2001-07-20 06:00:02 +0000 |
---|---|---|
committer | Jonathan Chen <jon@FreeBSD.org> | 2001-07-20 06:00:02 +0000 |
commit | 42845cb855bd236f4472da0f3bd616b34a7c7e28 (patch) | |
tree | 9e3f08bbac2f0010657ba46f9cc0552ed4c8986a | |
parent | ac24b049cc3d78097a804c9ce72cf44fdfa59456 (diff) |
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
Notes
Notes:
svn path=/head/; revision=80027
-rw-r--r-- | sys/i386/ibcs2/ibcs2_ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/ibcs2/ibcs2_ioctl.c b/sys/i386/ibcs2/ibcs2_ioctl.c index 42190d2374eb..4dfa80bdd12d 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] = |