Put in a real isa_irq_pending() stub in order to remove two lines of dmesg
noise from sio per unit. sio likes to probe if interrupts are configured correctly by looking at the pending bits of the atpic in order to put a non-fatal warning on the console. I think I'd rather read the pending bits from the apics, but I'm not sure its worth the hassle.
This commit is contained in:
parent
5b30d6ca77
commit
3bf67daaf3
@ -847,11 +847,23 @@ ssdtosyssd(ssd, sd)
|
||||
|
||||
#if !defined(DEV_ATPIC) && defined(DEV_ISA)
|
||||
#include <isa/isavar.h>
|
||||
u_int
|
||||
#include <isa/isareg.h>
|
||||
/*
|
||||
* Return a bitmap of the current interrupt requests. This is 8259-specific
|
||||
* and is only suitable for use at probe time.
|
||||
* This is only here to pacify sio. It is NOT FATAL if this doesn't work.
|
||||
* It shouldn't be here. There should probably be an APIC centric
|
||||
* implementation in the apic driver code, if at all.
|
||||
*/
|
||||
intrmask_t
|
||||
isa_irq_pending(void)
|
||||
{
|
||||
u_char irr1;
|
||||
u_char irr2;
|
||||
|
||||
return (0);
|
||||
irr1 = inb(IO_ICU1);
|
||||
irr2 = inb(IO_ICU2);
|
||||
return ((irr2 << 8) | irr1);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user