From owner-freebsd-hackers Tue Nov 28 09:57:07 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id JAA22415 for hackers-outgoing; Tue, 28 Nov 1995 09:57:07 -0800 Received: from brasil.moneng.mei.com (brasil.moneng.mei.com [151.186.20.4]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id JAA22410 for ; Tue, 28 Nov 1995 09:57:02 -0800 Received: (from jgreco@localhost) by brasil.moneng.mei.com (8.7.Beta.1/8.7.Beta.1) id LAA12778; Tue, 28 Nov 1995 11:54:20 -0600 From: Joe Greco Message-Id: <199511281754.LAA12778@brasil.moneng.mei.com> Subject: Re: 16 ports Boca - anyone using it? To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Tue, 28 Nov 1995 11:54:20 -0600 (CST) Cc: rich@spirit.com.au, hsu@clinet.fi, msmith@atrad.adelaide.edu.au, freebsd-hackers@freefall.freebsd.org In-Reply-To: <199511280856.IAA07993@genesis.atrad.adelaide.edu.au> from "Michael Smith" at Nov 28, 95 08:56:16 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@FreeBSD.ORG Precedence: bulk > Joe Greco stands accused of saying: > Yecch. I've used that word a lot lately, myself :-) > You could possibly add some code to siopoll() to check the interrupt status > of open ports, and spew a console printf if it found a port with pending > interrupt status. Something like : Ok, I am installing: wye# diff -c sio.c{.fcs,} *** sio.c.fcs Tue May 30 03:03:06 1995 --- sio.c Tue Nov 28 11:50:18 1995 *************** *** 1570,1575 **** --- 1570,1581 ---- } if (incc <= 0 || !(tp->t_state & TS_ISOPEN)) continue; + + /* Bruce Evans / Michael Smith debug patch.. */ + iir = inb(com->int_id_port) & 0x07; + if ((iir & 1) == 0) + log(LOG_DEBUG, "sio%d: IRQ pending (%d) in poll\n", com->unit, iir); + /* * XXX only do this when we bypass ttyinput. */ and I will report what happens when it happens. Thanks guys, I appreciate the help from people who know what the code is doing... ;-) ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/342-4847