mmu: fix call to vmm_pagefault

This commit is contained in:
Matheus
2023-05-07 22:32:19 -03:00
parent c773d6e616
commit 8a45b183b0
+1 -1
View File
@@ -203,7 +203,7 @@ static void pfisr(isr_t *self, context_t *ctx) {
if (ctx->error & ERROR_FETCH)
vmmerror |= VMM_ACTION_EXEC;
if (vmm_pagefault((void *)ctx->cr2, ctx->cs == 8, vmmerror) == false)
if (vmm_pagefault((void *)ctx->cr2, ctx->cs != 8, vmmerror) == false)
_panic("Page fault", ctx);
}