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
This commit is contained in:
parent
b64625adfb
commit
6236550bdb
@ -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] =
|
||||
|
Loading…
Reference in New Issue
Block a user