From owner-freebsd-bugs Wed May 23 14:50:13 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4B5C937B424 for ; Wed, 23 May 2001 14:50:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4NLo3340001; Wed, 23 May 2001 14:50:03 -0700 (PDT) (envelope-from gnats) Date: Wed, 23 May 2001 14:50:03 -0700 (PDT) Message-Id: <200105232150.f4NLo3340001@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Jonathan Chen Subject: Re: i386/8414: ibcs2 emulation sets serial baud-rate incorrectly Reply-To: Jonathan Chen Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR i386/8414; it has been noted by GNATS. From: Jonathan Chen 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 ---------------------------------------------------------------------- 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