summaryrefslogtreecommitdiff
path: root/kernel/idt.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/idt.c')
-rw-r--r--kernel/idt.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/idt.c b/kernel/idt.c
index cd032d3..96d6d15 100644
--- a/kernel/idt.c
+++ b/kernel/idt.c
@@ -1,7 +1,7 @@
#include <kernel/gdt.h>
#include <kernel/idt.h>
#include <kernel/isr.h>
-#include <kernel/tty.h> // used only for the selftest
+#include <kernel/panic.h>
#include <stdbool.h>
#include <stdint.h>
@@ -64,10 +64,7 @@ static void idt_load() {
static void idt_test() {
asm("int $0x34" : : : "memory");
- if (!isr_test_interrupt_called) {
- tty_const("IDT self test failed");
- for(;;);
- }
+ if (!isr_test_interrupt_called) panic();
}
void idt_init() {