Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 1998 01:00:00 -0700 (PDT)
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: i386/8414: ibcs2 emulation sets serial baud-rate incorrectly 
Message-ID:  <199810230800.BAA24472@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/8414; it has been noted by GNATS.

From: Poul-Henning Kamp <phk@critter.freebsd.dk>
To: jonc@pinnacle.co.nz
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: i386/8414: ibcs2 emulation sets serial baud-rate incorrectly 
Date: Fri, 23 Oct 1998 09:49:58 +0200

 I think you sent the wrong patch, didn't you ?  Or did it get truncated ?
 
 >>Fix:
 >
 >	Patch to /usr/src/sys/i386/ibcs2/ibcs2_ioctl.c required. The existing
 >	code incorrectly inspects IBCS-termio.c_lflag for a baud-rate setting
 >	when it should be inspecting IBCS-termio.c_cflag.
 >
 >*** ibcs2_ioctl.c.old	Fri Oct 23 10:29:59 1998
 >--- ibcs2_ioctl.c	Fri Oct 23 10:29:52 1998
 >***************
 >*** 188,193 ****
 >--- 188,194 ----
 >  	if (l & IBCS2_HUPCL)	r |= HUPCL;
 >  	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;
 >***************
 >*** 199,206 ****
 >  	if (l & IBCS2_NOFLSH)	r |= NOFLSH;
 >  	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;
 >--- 200,205 ----
 >
 >>Audit-Trail:
 >>Unformatted:
 >
 >To Unsubscribe: send mail to majordomo@FreeBSD.org
 >with "unsubscribe freebsd-bugs" in the body of the message
 >
 
 --
 Poul-Henning Kamp             FreeBSD coreteam member
 phk@FreeBSD.ORG               "Real hackers run -current on their laptop."
 "ttyv0" -- What UNIX calls a $20K state-of-the-art, 3D, hi-res color terminal

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810230800.BAA24472>