Pagefault handler never come back

This commit is contained in:
Mathieu Maret 2021-04-09 20:45:40 +02:00
parent 582c06afbc
commit 8c0c61c099

View File

@ -61,9 +61,11 @@ __attribute__((interrupt)) void pagefault_handler(struct interrupt_frame *frame,
asm volatile("mov %%cr2, %0" : "=r"(faulting_address));
struct kthread *current = getCurrentThread();
printf("page fault while in thread %s\n", current->name);
printf("page fault while in thread %s at 0x%x\n", current->name, faulting_address);
VGAPrintf(RED, BLACK, 0, VGA_HEIGHT - 1, "PAGE FAULT %d", error_code);
(void)faulting_address;
(void)frame;
(void)error_code;
for(;;)
continue;
}