diff options
author | Marvin Borner | 2020-01-16 17:15:53 +0100 |
---|---|---|
committer | Marvin Borner | 2020-01-16 17:15:53 +0100 |
commit | cd3ad989210dc8a3f5805dd5d4c4a6bd74e281db (patch) | |
tree | 015fa67057b1ca14a86a8faf4d1cabb0356467b2 /src/kernel/interrupts/isr.c | |
parent | 602b98247e9c87e38870e39abf1d8b13aeae5d0f (diff) |
Quite a different approach to userspace paging
Hope this works soon!
Diffstat (limited to 'src/kernel/interrupts/isr.c')
-rw-r--r-- | src/kernel/interrupts/isr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/interrupts/isr.c b/src/kernel/interrupts/isr.c index eb932b2..8b2a9e5 100644 --- a/src/kernel/interrupts/isr.c +++ b/src/kernel/interrupts/isr.c @@ -3,6 +3,7 @@ #include <kernel/system.h> #include <kernel/lib/string.h> #include <kernel/lib/stdio.h> +#include <kernel/paging/paging.h> // Install ISRs in IDT void isrs_install() @@ -116,6 +117,7 @@ void fault_handler(struct regs *r) r->eip, r->eax, r->ebx, r->ecx, r->edx, r->esp, faulting_address, r->eflags, r->err_code, r->int_no, exception_messages[r->int_no] ); + serial_printf("%d", paging_get_flags(faulting_address)); // halt_loop(); // Idk loop? char *message = (char *) exception_messages[r->int_no]; strcat(message, " Exception"); |