summaryrefslogtreecommitdiff
path: root/kc/core/memory.c
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-01-17 14:03:39 +0000
committerAda Christine <adachristine18@gmail.com>2022-01-17 14:03:39 +0000
commit4130fbcdcfd2baa6d1f9b065ce34afa2a339f670 (patch)
tree5b44d1ca1c17bbb57dfb577a54e567086fa9690f /kc/core/memory.c
parent8c56039ca130dfef1f0bf204cc702eeb10801379 (diff)
entering the idle task appears to work
Diffstat (limited to 'kc/core/memory.c')
-rw-r--r--kc/core/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kc/core/memory.c b/kc/core/memory.c
index 9956bfd..ba0ca57 100644
--- a/kc/core/memory.c
+++ b/kc/core/memory.c
@@ -537,12 +537,12 @@ static uint64_t *get_kernel_pm2e(void *vaddr)
return &kernel_pm2[kpm2_index(vaddr)];
}
-
int anonymous_page_handler(uint32_t code, void *address)
{
kputs("anonymous space fault\n");
if (code & PAGE_PR)
{
+ kputs("can't fault a present page\n");
// there's no reason a protection violation should happen
// in anonymous space
panic(UNHANDLED_FAULT);