1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/sys/i386/isa
Bruce Evans bed16055e7 Fixed misclassification of npx interrupts caused by npx_probe().
Dividing by 0 in order to check for irq13/exception16 delivery apparently
always causes an irq13 even if we have configured for exception16 (by
setting CR0_NE).  This was expected, but the timing of the irq13 was
unexpected.  Without CR0_NE, the irq13 is delivered synchronously at
least on my test machine, but with CR0_NE it is delivered a little
later (about 250 nsec) in PIC mode and much later (5000-10000 nsec)
in APIC mode.  So especially in APIC mode, the irq13 may arrive after
it is supposed to be shut down.  It should then be masked, but the
shutdown is incomplete, so the irq goes to a null handler that just
reports it as stray.  The fix is to wait a bit after dividing by 0 to
give a good chance of the irq13 being handled by its proper handler.

Removed the hack that was supposed to recover from the incomplete shutdown
of irq13.  The shutdown is now even more incomplete, or perhaps just
incomplete in a different way, but the hack now has no effect because
irq13 is edge triggered and handling of edge triggered interrupts is
now optimized by skipping their masking.  The hack only worked due
to it accidentally not losing races.

The incomplete shutdown of irq13 still allows unprivileged users to
generate a stray irq13 (except on systems where irq13 is actually used)
by unmasking an npx exception and causing one.  The exception gets
handled properly by the exception 16 handler.  A spurious irq13 is
delivered asynchronously but is harmless (as in the probe) because it
is almost perfectly not handled by the null interrupt handler.
Perfectly not handling it involves mainly not resetting the npx busy
latch.  This prevents further irq13's despite them not being masked in
the [A]PIC.
2004-06-06 15:17:44 +00:00
..
ic Remove old cy driver files. They have been repo-copied to sys/dev/cy and 2004-05-02 05:38:49 +00:00
pcvt Manual edits to change linesw[]-frobbing to ttyld_*() calls. 2004-06-04 20:04:52 +00:00
atpic_vector.s MFamd64: 2004-05-26 07:43:41 +00:00
atpic.c Add some missing <sys/module.h> includes which are masked by the 2004-05-30 17:57:46 +00:00
ccbque.h
clock.c Add some missing <sys/module.h> includes which are masked by the 2004-05-30 17:57:46 +00:00
elcr.c Add a simple mini-driver for the ELCR register. Originally, the ELCR 2004-05-04 20:07:46 +00:00
elink.c Use __FBSDID(). 2003-06-02 16:32:55 +00:00
elink.h - Change ELINK_ID_PORT; the 3c507 likes 0x100 better. 2003-03-29 13:18:20 +00:00
icu.h - Move some macros from icu.h into atpic.c as that is the only place they 2004-05-11 20:23:24 +00:00
if_el.c Add missing #include <sys/module.h> 2004-05-30 20:34:58 +00:00
if_elreg.h
isa_dma.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
isa_dma.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
isa.c remove stale comment since these limits have been increased YEARS ago... 2004-03-17 19:04:58 +00:00
isa.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
lptreg.h
mse.c Add missing #include <sys/module.h> 2004-05-30 20:34:58 +00:00
nmi.c Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
npx.c Fixed misclassification of npx interrupts caused by npx_probe(). 2004-06-06 15:17:44 +00:00
pcf.c Remove isa compat stuff. 2004-03-14 23:03:57 +00:00
pmtimer.c Add some missing <sys/module.h> includes which are masked by the 2004-05-30 17:57:46 +00:00
prof_machdep.c Quick fix for overflow when tsc_freq >= 2^31. "int profrate" in struct 2004-05-26 09:43:38 +00:00
spic.c Add missing #include <sys/module.h> 2004-05-30 20:34:58 +00:00
spicreg.h Device megapatch 1/6: 2004-02-21 19:42:58 +00:00
spkr.c Device megapatch 4/6: 2004-02-21 21:10:55 +00:00
timerreg.h Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
vesa.c Make the 80x60, 132x25, 132x43, 132x50, and 132x60 VESA text modes 2003-07-18 00:06:10 +00:00