Changeset 7bcfbbc in mainline for kernel/arch/ia32xen/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/ia32xen/src/interrupt.c
r7e58979 r7bcfbbc 177 177 178 178 int inum = n - IVT_IRQBASE; 179 bool ack = false; 179 180 ASSERT(inum < IRQ_COUNT); 180 181 ASSERT((inum != IRQ_PIC_SPUR) && (inum != IRQ_PIC1)); 181 182 182 183 irq_t *irq = irq_dispatch_and_lock(inum); 183 184 if (irq) { … … 185 186 * The IRQ handler was found. 186 187 */ 188 189 if (irq->preack) { 190 /* Send EOI before processing the interrupt */ 191 trap_virtual_eoi(); 192 ack = true; 193 } 187 194 irq->handler(irq, irq->arg); 188 195 spinlock_unlock(&irq->lock); … … 195 202 #endif 196 203 } 197 trap_virtual_eoi(); 204 205 if (!ack) 206 trap_virtual_eoi(); 198 207 } 199 208
Note:
See TracChangeset
for help on using the changeset viewer.