From b86f48da7fc46934d576698bb4f16be9b2a7eaf9 Mon Sep 17 00:00:00 2001 From: Miguel Date: Wed, 26 Sep 2018 23:58:14 +0200 Subject: some bugfixes --- kernel/interrupts.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'kernel/interrupts.h') diff --git a/kernel/interrupts.h b/kernel/interrupts.h index b3b8a93..31b0cc0 100644 --- a/kernel/interrupts.h +++ b/kernel/interrupts.h @@ -26,6 +26,10 @@ * ------------------- * * 0x81-0xA0 * + * Default + * ------- + * * 0xff + * * Usage * ----- * @@ -34,6 +38,10 @@ * interrupt_handler() and exception_handler() will be called accordingly from * the interrupt handlers this functionality is backed by. You can find them * in asm_int.h. The selector 0x08 is used. + * + * You can register handlers for specific interrupts via + * interrupt_register(). Remember that the interrupts are routed + * through the I/O APIC which has to be configured as well. */ #define INTERRUPT_SYSCALL 0x80 // can be called from user code / ring 3 @@ -46,9 +54,8 @@ #define INTERRUPT_E1000 0x93 #define INTERRUPT_APIC_TIMER 0x94 - void interrupts_init(); void interrupts_install(); -void interrupt_handler_register(uint32_t irq, uint32_t func_addr); +void interrupt_register(uint32_t irq, uint32_t func_addr); #endif -- cgit v1.2.3