Changeset 7bcfbbc in mainline for kernel/arch/ppc32/src/interrupt.c
- Timestamp:
- 2007-04-07T23:30:59Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ac88c93
- Parents:
- 7e58979
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/interrupt.c
r7e58979 r7bcfbbc 61 61 62 62 while ((inum = pic_get_pending()) != -1) { 63 bool ack = false; 63 64 irq_t *irq = irq_dispatch_and_lock(inum); 64 65 if (irq) { … … 66 67 * The IRQ handler was found. 67 68 */ 69 70 if (irq->preack) { 71 /* Acknowledge the interrupt before processing */ 72 pic_ack_interrupt(inum); 73 ack = true; 74 } 75 68 76 irq->handler(irq, irq->arg); 69 77 spinlock_unlock(&irq->lock); … … 76 84 #endif 77 85 } 78 pic_ack_interrupt(inum); 86 87 if (!ack) 88 pic_ack_interrupt(inum); 79 89 } 80 90 }
Note:
See TracChangeset
for help on using the changeset viewer.