From owner-freebsd-bugs Fri Oct 23 01:00:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA05042 for freebsd-bugs-outgoing; Fri, 23 Oct 1998 01:00:06 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA05037 for ; Fri, 23 Oct 1998 01:00:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id BAA24472; Fri, 23 Oct 1998 01:00:00 -0700 (PDT) Date: Fri, 23 Oct 1998 01:00:00 -0700 (PDT) Message-Id: <199810230800.BAA24472@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Poul-Henning Kamp Subject: Re: i386/8414: ibcs2 emulation sets serial baud-rate incorrectly Reply-To: Poul-Henning Kamp Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR i386/8414; it has been noted by GNATS. From: Poul-Henning Kamp 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