mmu: make kernel panic on unhandled page fault

This commit is contained in:
Matheus
2023-04-23 19:05:27 -03:00
parent 0394165361
commit d85ec56503
+2 -1
View File
@@ -203,7 +203,8 @@ static void pfisr(isr_t *self, context_t *ctx) {
if (ctx->error & ERROR_FETCH)
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() {