diff options
Diffstat (limited to 'src/kernel/task/idt.cpp')
-rw-r--r-- | src/kernel/task/idt.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/kernel/task/idt.cpp b/src/kernel/task/idt.cpp index c09034e..634350c 100644 --- a/src/kernel/task/idt.cpp +++ b/src/kernel/task/idt.cpp @@ -1,11 +1,12 @@ #include "idt.h" -#include <core/monitor.h> #include <core/sys.h> #include <mem/paging.h> #include <lib/cpp.h> #include "task.h" #include "syscall.h" +#include <ui/vt.h> + #include <stdlib_common.h> extern "C" { @@ -80,9 +81,9 @@ static struct irq_waiter { extern "C" void idt_isrHandler(registers regs) { if ((regs.int_no == 14 && paging_fault(®s) != 0) || regs.int_no != 14) { if (tasking_handleException(®s) == 0) { - monitor_write("\nREALLY BAD THIS TIME\t\tUnhandled exception\t#"); - monitor_writeDec(regs.int_no); - monitor_write("\t@"); monitor_writeHex(regs.eip); + ke_vt->writeStr("\nREALLY BAD THIS TIME\t\tUnhandled exception\t#"); + ke_vt->writeDec(regs.int_no); + ke_vt->writeStr("\t@"); ke_vt->writeHex(regs.eip); PANIC("Unhandled Exception"); } } @@ -191,8 +192,6 @@ void idt_init() { idt_setGate(64, (int32_t)syscall64, 0x08, 0x8E); idt_flush((int32_t)&idt_ptr); - - monitor_write("[IDT] "); } /* Sets up an IRQ handler for given IRQ. */ |