Changeset 34 for GPL/trunk/lib32/irq.c
- Timestamp:
- Dec 11, 2005, 5:57:39 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/lib32/irq.c
r33 r34 47 47 //****************************************************************************** 48 48 int request_irq(unsigned int irq, 49 void (*handler)(int, void *, struct pt_regs *),49 int (near *handler)(int, void *, struct pt_regs *), 50 50 unsigned long x0, const char *x1, void *x2) 51 51 { … … 54 54 if(RMRequestIRQ(hResMgr, irq, (x0 & SA_SHIRQ) ? TRUE : FALSE) == FALSE) { 55 55 dprintf(("RMRequestIRQ failed for irq %d", irq)); 56 return NULL;56 return 0; 57 57 } 58 58 … … 109 109 void eoi_irq(unsigned int irq) 110 110 { 111 if(irq > 0xf ) {111 if(irq > 0xff) { 112 112 DebugInt3(); 113 113 return; … … 119 119 BOOL oss_process_interrupt(int irq) 120 120 { 121 BOOLrc;121 int rc; 122 122 int i; 123 123 … … 142 142 { 143 143 fInInterrupt = TRUE; 144 irqHandlers[irq][i].handler(irq, irqHandlers[irq][i].x2, 0);145 rc = (eoiIrq[irq] > 0);144 rc = irqHandlers[irq][i].handler(irq, irqHandlers[irq][i].x2, 0); 145 //rc = (eoiIrq[irq] > 0); 146 146 fInInterrupt = FALSE; 147 if(rc ) {147 if(rc == 1) { 148 148 //ok, this interrupt was intended for us; notify the 16 bits MMPM/2 driver 149 149 OSS32_ProcessIRQ();
Note:
See TracChangeset
for help on using the changeset viewer.