summaryrefslogtreecommitdiff
path: root/src/kernel/task/idt.cpp
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-17 17:56:23 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-17 17:56:23 +0200
commit593bf4df3d8db49286c1a7ae4ef75c887b629930 (patch)
tree988a104c9611d72e1252282789688586efd9a394 /src/kernel/task/idt.cpp
parent7c9a48b4e6d66cf4f62e7bad9e22ab06923e47ef (diff)
downloadTCE-593bf4df3d8db49286c1a7ae4ef75c887b629930.tar.gz
TCE-593bf4df3d8db49286c1a7ae4ef75c887b629930.zip
Devices using the VFS structure. Basic keyboard handler.
Diffstat (limited to 'src/kernel/task/idt.cpp')
-rw-r--r--src/kernel/task/idt.cpp11
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(&regs) != 0) || regs.int_no != 14) {
if (tasking_handleException(&regs) == 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. */