Use address instead of slot for add_nubus_intr. This whole interrupt

scheme should probably be taken out and shot.
This commit is contained in:
briggs 1993-12-21 03:19:33 +00:00
parent 982b2aa969
commit cec9c395f8
1 changed files with 8 additions and 3 deletions

View File

@ -230,12 +230,17 @@ long via2_noint(int bitnum)
return 1;
}
int add_nubus_intr(slot, func, unit)
int slot;
int add_nubus_intr(addr, func, unit)
int addr;
int (*func)();
int unit;
{
int s = splhigh();
int s = splhigh();
int slot;
slot = nubus_addr_to_slot(addr);
if (slot < 0) return 0;
slotitab[slot-9] = func;
slotutab[slot-9] = unit;