Changeset f6cf76f in mainline for kernel/genarch/src
- Timestamp:
- 2019-04-05T18:30:19Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 29beac8
- Parents:
- f4bb404
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/drivers/i8259/i8259.c
rf4bb404 rf6cf76f 43 43 #include <interrupt.h> 44 44 45 static void pic_spurious(unsigned int n, istate_t *istate);46 47 45 // XXX: need to change pic_* API to get rid of these 48 46 static i8259_t *saved_pic0; … … 78 76 /* ICW4: i8086 mode */ 79 77 pio_write_8(&pic1->port2, 1); 80 81 /*82 * Register interrupt handler for the PIC spurious interrupt.83 *84 * XXX: This is currently broken. Both IRQ 7 and IRQ 15 can be spurious85 * or can be actual interrupts. This needs to be detected when86 * the interrupt happens by inspecting ISR.87 */88 exc_register(irq0_int + 7, "pic_spurious", false,89 (iroutine_t) pic_spurious);90 78 91 79 pic_disable_irqs(0xffff); /* disable all irq's */ … … 130 118 } 131 119 132 void pic_spurious(unsigned int n __attribute__((unused)), istate_t *istate __attribute__((unused)))133 {134 #ifdef CONFIG_DEBUG135 log(LF_ARCH, LVL_DEBUG, "cpu%u: PIC spurious interrupt", CPU->id);136 #endif137 }138 139 120 /** @} 140 121 */
Note:
See TracChangeset
for help on using the changeset viewer.