Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2001 14:50:03 -0700 (PDT)
From:      Jonathan Chen <jonathan.chen@itouch.co.nz>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: i386/8414: ibcs2 emulation sets serial baud-rate incorrectly
Message-ID:  <200105232150.f4NLo3340001@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: Jonathan Chen <jonathan.chen@itouch.co.nz>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: i386/8414: ibcs2 emulation sets serial baud-rate incorrectly
Date: Thu, 24 May 2001 09:42:22 +1200

 --IS0zKkzwUGydFO0o
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Here's an updated patch for /usr/src/sys/i386/ibcs2_ioctl.c for 4.X-STABLE.
 
 Cheers.
 -- 
 Jonathan Chen <jonathan.chen@itouch.co.nz>
 ----------------------------------------------------------------------
 char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
 
 --IS0zKkzwUGydFO0o
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=patch
 
 --- ibcs2_ioctl.c.old	Wed May 23 09:02:52 2001
 +++ ibcs2_ioctl.c	Wed May 23 09:04:19 2001
 @@ -166,6 +166,7 @@
  	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;
 @@ -177,8 +178,6 @@
  	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;
 
 --IS0zKkzwUGydFO0o--

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?200105232150.f4NLo3340001>