summaryrefslogtreecommitdiff
path: root/src/kernel/task/idt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/task/idt.c')
-rw-r--r--src/kernel/task/idt.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/kernel/task/idt.c b/src/kernel/task/idt.c
index aed5ea8..e6105d5 100644
--- a/src/kernel/task/idt.c
+++ b/src/kernel/task/idt.c
@@ -76,9 +76,9 @@ static struct irq_waiter {
void idt_isrHandler(struct 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_write("\nREALLY BAD THIS TIME : Unhandled exception #");
monitor_writeDec(regs.int_no);
- monitor_write("\t@"); monitor_writeHex(regs.eip);
+ monitor_write(" @ eip:"); monitor_writeHex(regs.eip);
PANIC("Unhandled Exception");
}
}
@@ -105,14 +105,6 @@ void idt_irqHandler(struct registers regs) {
if (doSwitch) schedule();
}
-/* Called in idt_.asm on a system call (interrupt 64).
- Calls the correct syscall handler (if any). */
-void idt_syscallHandler(struct registers regs) {
- if (regs.eax < NUMBER_OF_SYSCALLS && syscalls[regs.eax] != 0) {
- syscalls[regs.eax](&regs);
- }
-}
-
/* For internal use only. Sets up an entry of the IDT with given parameters. */
static void idt_setGate(uint8_t num, uint32_t base, uint16_t sel, uint8_t flags) {
idt_entries[num].base_lo = base & 0xFFFF;