From owner-freebsd-current Mon Apr 24 22: 7:53 2000 Delivered-To: freebsd-current@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id C51AA37BD97; Mon, 24 Apr 2000 22:07:27 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id OAA29803; Tue, 25 Apr 2000 14:36:41 +0930 (CST) Date: Tue, 25 Apr 2000 14:36:41 +0930 From: Greg Lehey To: Doug Rabson Cc: FreeBSD Committers , FreeBSD current users Subject: Re: Remote serial gdb is broken in -CURRENT. Message-ID: <20000425143641.J26934@freebie.lemis.com> References: <20000423154307.L4675@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sunday, 23 April 2000 at 10:07:38 +0100, Doug Rabson wrote: > On Sun, 23 Apr 2000, Greg Lehey wrote: > >> In the last few days, my remote serial gdb has almost completely >> stopped working. Previously I had (almost) no trouble at 38400 bps; >> now I can barely get a response at all at 9600 bps. Does anybody have >> an idea where this could be coming from? > > I noticed this too but I have no idea why. I also had to move back to > 9600. I've found the problem and fixed it. It's been broken all along, but for some reason it got worse lately. Basically, what happened was that the getpacket function, which does polled I/O, wasn't locking out interrupts, and something was interrupting long enough for characters to get lost. Since sometimes several consecutive characters got lost, it seems likely that either something locks out interrupts for an inappropriately long time, or the sio interrupt routines steal them. Anyway, it works nicely at 115200 bps now. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message