From 50f949d994c33ab23d63bdb9e8a438560ab0b4c4 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 30 Nov 2019 21:07:22 +0100 Subject: Working userspace! --- src/kernel/interrupts/isr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/kernel/interrupts/isr.c') diff --git a/src/kernel/interrupts/isr.c b/src/kernel/interrupts/isr.c index 8b42a24..106cac8 100644 --- a/src/kernel/interrupts/isr.c +++ b/src/kernel/interrupts/isr.c @@ -170,6 +170,8 @@ void fault_handler(struct regs *r) serial_write_hex(r->ecx); serial_write("\nEDX: "); serial_write_hex(r->edx); + serial_write("\nESP: "); + serial_write_hex(r->esp); serial_write("\nFaulting address: "); serial_write_hex(faulting_address); serial_write("\nError flags: "); @@ -180,7 +182,7 @@ void fault_handler(struct regs *r) serial_write_hex(r->int_no); serial_write("\nInterrupt message: "); serial_write(exception_messages[r->int_no]); - halt_loop(); // Idk loop? + // halt_loop(); // Idk loop? char *message = (char *) exception_messages[r->int_no]; strcat(message, " Exception"); panic(message); -- cgit v1.2.3