From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: axp-list@redhat.com
Subject: Re: irq 7 on AlphaBIOS machines
Date: Wed, 22 Mar 2000 19:24:33 +0100 (MET) [thread overview]
Message-ID: <Pine.GSO.3.96.1000322190327.12978G-100000@delta.ds2.pg.gda.pl> (raw)
In-Reply-To: <20000322203113.A3330@jurassic.park.msu.ru>
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 +
next prev parent reply other threads:[~2000-03-22 19:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-22 17:31 irq 7 on AlphaBIOS machines Ivan Kokshaysky
2000-03-22 18:24 ` Maciej W. Rozycki [this message]
2000-03-24 15:54 ` Ivan Kokshaysky
2000-03-24 18:31 ` Maciej W. Rozycki
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox