Pagefault handler never come back
This commit is contained in:
parent
582c06afbc
commit
8c0c61c099
@ -61,9 +61,11 @@ __attribute__((interrupt)) void pagefault_handler(struct interrupt_frame *frame,
|
|||||||
asm volatile("mov %%cr2, %0" : "=r"(faulting_address));
|
asm volatile("mov %%cr2, %0" : "=r"(faulting_address));
|
||||||
|
|
||||||
struct kthread *current = getCurrentThread();
|
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);
|
VGAPrintf(RED, BLACK, 0, VGA_HEIGHT - 1, "PAGE FAULT %d", error_code);
|
||||||
(void)faulting_address;
|
(void)faulting_address;
|
||||||
(void)frame;
|
(void)frame;
|
||||||
(void)error_code;
|
(void)error_code;
|
||||||
|
for(;;)
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user