aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/int.c
diff options
context:
space:
mode:
authorMarvin Borner2021-06-03 16:47:46 +0200
committerMarvin Borner2021-06-03 16:47:46 +0200
commitf7890c4b16b5d817db286119ac0a88630c3a1cf9 (patch)
treec991a512ac36e632b3a69a165ca556174d4063c7 /kernel/drivers/int.c
parent98e15f73f090c32b5197ecec0845c408d4a54608 (diff)
Smashed some dumb bugs
aargh
Diffstat (limited to 'kernel/drivers/int.c')
-rw-r--r--kernel/drivers/int.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/drivers/int.c b/kernel/drivers/int.c
index 47a2699..39462fa 100644
--- a/kernel/drivers/int.c
+++ b/kernel/drivers/int.c
@@ -109,8 +109,8 @@ static void int_trap_handler(struct int_frame *frame)
frame->eip, frame->eip - proc->entry);
printf("\t\t-> Process: [entry: %x, kstack: %x, esp %x, ustack: %x]\n", proc->entry,
proc->stack.kernel, frame->esp, proc->stack.user);
- proc_exit(proc, 1);
faulting--;
+ proc_exit(proc, 1);
} else {
while (1)
__asm__ volatile("cli\nhlt");
@@ -129,7 +129,6 @@ CLEAR void int_event_handler_add(u32 int_no, void (*handler)(void))
int_event_handlers[int_no] = handler;
}
-#include <mm.h>
static u32 int_event_handler(struct int_frame *frame)
{
u32 int_no = frame->int_no - 32;