Changeset c2417bc in mainline for kernel/arch/ppc32/src/interrupt.c
- Timestamp:
- 2009-04-21T12:46:26Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f2d2c7ba
- Parents:
- 44b7783
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/interrupt.c
r44b7783 rc2417bc 61 61 62 62 while ((inum = pic_get_pending()) != -1) { 63 bool ack = false;64 63 irq_t *irq = irq_dispatch_and_lock(inum); 65 64 if (irq) { … … 70 69 if (irq->preack) { 71 70 /* Acknowledge the interrupt before processing */ 72 pic_ack_interrupt(inum);73 ack = true;71 if (irq->cir) 72 irq->cir(irq->cir_arg, irq->inr); 74 73 } 75 74 76 75 irq->handler(irq); 76 77 if (!irq->preack) { 78 if (irq->cir) 79 irq->cir(irq->cir_arg, irq->inr); 80 } 81 77 82 spinlock_unlock(&irq->lock); 78 83 } else { … … 84 89 #endif 85 90 } 86 87 if (!ack)88 pic_ack_interrupt(inum);89 91 } 90 92 }
Note:
See TracChangeset
for help on using the changeset viewer.