From 6ed63f6cee404c09ce6d2becf4ab60b891a767fe Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 17 Jan 2024 21:01:02 -0500 Subject: kernel: vm: Init virtual memory in pre_init() Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/machdep.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/arch') diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index f5b6365..1194b63 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -38,6 +38,8 @@ #include #include #include +#include +#include #include __MODULE_NAME("machdep"); @@ -104,6 +106,9 @@ pre_init(void) uart8250_try_init(); interrupts_init(); gdt_load(&g_gdtr); + + vm_physseg_init(); + vm_init(); } void -- cgit v1.2.3