mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
mmu: make kernel panic on unhandled page fault
This commit is contained in:
@@ -203,7 +203,8 @@ static void pfisr(isr_t *self, context_t *ctx) {
|
|||||||
if (ctx->error & ERROR_FETCH)
|
if (ctx->error & ERROR_FETCH)
|
||||||
vmmerror |= VMM_ACTION_EXEC;
|
vmmerror |= VMM_ACTION_EXEC;
|
||||||
|
|
||||||
__assert(vmm_pagefault((void *)ctx->cr2, ctx->cs == 8, vmmerror));
|
if (vmm_pagefault((void *)ctx->cr2, ctx->cs == 8, vmmerror) == false)
|
||||||
|
_panic("Page fault", ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
void arch_mmu_init() {
|
void arch_mmu_init() {
|
||||||
|
|||||||
Reference in New Issue
Block a user