summaryrefslogtreecommitdiff
path: root/sys/vm/vm_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/vm_init.c')
-rw-r--r--sys/vm/vm_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vm_init.c b/sys/vm/vm_init.c
index b6bb8a1..7518838 100644
--- a/sys/vm/vm_init.c
+++ b/sys/vm/vm_init.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2023-2024 Ian Marco Moffett and the Osmora Team.
+ * Copyright (c) 2023-2025 Ian Marco Moffett and the Osmora Team.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -56,12 +56,13 @@ vm_init(void)
void *pool;
vm_physmem_init();
+ pmap_init();
g_kvas = pmap_read_vas();
vm_ctx.dynalloc_pool_sz = DYNALLOC_POOL_SZ;
vm_ctx.dynalloc_pool_pa = vm_alloc_frame(DYNALLOC_POOL_PAGES);
if (vm_ctx.dynalloc_pool_pa == 0) {
- panic("Failed to allocate dynamic pool\n");
+ panic("failed to allocate dynamic pool\n");
}
pool = PHYS_TO_VIRT(vm_ctx.dynalloc_pool_pa);