From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 14741 invoked from network); 22 Mar 2000 19:31:25 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 22 Mar 2000 19:31:25 -0000 Received: from delta.ds2.pg.gda.pl (delta.ds2.pg.gda.pl [153.19.144.1]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA11389 for ; Wed, 22 Mar 2000 14:31:24 -0500 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id TAA01595 for ; Wed, 22 Mar 2000 19:24:33 +0100 (MET) Date: Wed, 22 Mar 2000 19:24:33 +0100 (MET) From: "Maciej W. Rozycki" To: axp-list@redhat.com Subject: Re: irq 7 on AlphaBIOS machines In-Reply-To: <20000322203113.A3330@jurassic.park.msu.ru> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Wed, 22 Mar 2000, Ivan Kokshaysky wrote: > I have no idea what the code below was intended to do, but it > effectively freezes XT-PIC and all devices on it (keyboard, > mouse, IDE etc.) with the first parport interrupt. It looks like a spurious 8259A interrupt detection, i.e. it checks if bit 7 of ISR is set. An 8259A feeds a default IRQ 7 to the host whenever no IRQ is active upon receipt of an interrupt acknowledge. No ISR bit is set in this case. The code looks right provided the 8259A is configured to return the contents of ISR (Interrupt Service Register) on read by default. If it's configured for IRR (Interrupt Request Register), then the code needs to be fixed. Basically you need to outb(0x0b, 0x20) in the 8259A setup code to switch to ISR or outb(0x0a, 0x20) to switch to IRR. I can't see any of these statements in the current Alpha code. So the 8259A retains whatever setup the console left over. I think an 8259A defaults to IRR after initialization (but I'll have to lookup the datasheet to be sure). -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available +