diff options
author | dzwdz | 2023-01-25 21:49:14 +0100 |
---|---|---|
committer | dzwdz | 2023-01-25 21:49:14 +0100 |
commit | f9ce893e143a7c2356a0f2204afac1f37d3e54d2 (patch) | |
tree | e93e569328ea61b71e785a52964238dc032aeefd /src/kernel/arch/amd64/interrupts/idt.c | |
parent | c24a9376b4a048a3f9408df2d47eaad367459bd7 (diff) |
kernel/irq: use a lookup table for irqs
Diffstat (limited to 'src/kernel/arch/amd64/interrupts/idt.c')
-rw-r--r-- | src/kernel/arch/amd64/interrupts/idt.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/kernel/arch/amd64/interrupts/idt.c b/src/kernel/arch/amd64/interrupts/idt.c index 622ac1a..8f37cb9 100644 --- a/src/kernel/arch/amd64/interrupts/idt.c +++ b/src/kernel/arch/amd64/interrupts/idt.c @@ -1,5 +1,5 @@ #include <kernel/arch/amd64/boot.h> -#include <kernel/arch/amd64/interrupts/isr.h> +#include <kernel/arch/amd64/interrupts.h> #include <kernel/panic.h> #include <stdbool.h> #include <stdint.h> @@ -30,7 +30,6 @@ static struct lidt_arg lidt_arg; static void idt_prepare(void); static void idt_load(void); -static void idt_test(void); static void idt_prepare(void) { @@ -55,13 +54,7 @@ static void idt_load(void) { asm("lidt (%0)" : : "r" (&lidt_arg) : "memory"); } -static void idt_test(void) { - asm("int $0x34" : : : "memory"); - assert(isr_test_interrupt_called); -} - void idt_init(void) { idt_prepare(); idt_load(); - idt_test(); } |