diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-15 00:12:04 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-15 00:12:04 -0400 |
commit | d19790a958e6842db74eef123ad444bf10d2bd9a (patch) | |
tree | eed42a69934db91bda86e47c2325d5eac4e3fb77 /src/sys/vm | |
parent | f0bc5cd13ae42b69649d69e6abb2cfd34feb4971 (diff) |
kern: os: Add initial kalloc subsystem
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/vm')
-rw-r--r-- | src/sys/vm/vm_init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sys/vm/vm_init.c b/src/sys/vm/vm_init.c index 77b0a21..1d1f733 100644 --- a/src/sys/vm/vm_init.c +++ b/src/sys/vm/vm_init.c @@ -29,10 +29,15 @@ #include <sys/panic.h> #include <sys/cpuvar.h> +#include <os/kalloc.h> #include <vm/vm.h> #include <vm/physseg.h> #include <machine/mmu.h> /* standard */ + +/* os_kalloc.c */ +void __kalloc_init(void); + static struct physmem_stat stat; struct vm_vas g_kvas; @@ -48,4 +53,6 @@ vm_init(void) if (mmu_init() < 0) { panic("vm_init: mmu_init() failed\n"); } + + __kalloc_init(); } |