From db8a92042073683ed115ad588f21f297b3fd06d6 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 11 Dec 2023 18:31:45 -0500 Subject: kernel: init: Fixup call order Some virtual memory routines are called by processor_init()... This is a temporary workaround until these calls are moved to processor_init() Signed-off-by: Ian Moffett --- sys/kern/init_main.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 6f06f9d..8e77010 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -82,11 +82,21 @@ main(void) VEGA_BUILDBRANCH); acpi_init(); - processor_init(); + + /* + * TODO: Move these calls to machdep.c whenever + * possible. It must be documented that + * this will only be called by processor_init() + * as the pmap subsystem may rely on architecture + * specifics that haven't been set up yet... Putting + * these calls in processor_init() makes things more + * flexible. + */ vm_physseg_init(); + vm_init(); + processor_init(); list_timers(); - vm_init(); /* We're done here, halt the processor */ __ASMV("cli; hlt"); -- cgit v1.2.3