aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2023-12-11 18:31:45 -0500
committerIan Moffett <ian@osmora.org>2023-12-11 18:31:45 -0500
commitdb8a92042073683ed115ad588f21f297b3fd06d6 (patch)
tree96416e5e0fdff55ecfce5bf8d66f8e55a687e4e1 /sys
parenta1d3154381e1bfdbca59bcdf9d4d719b0316fcda (diff)
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 <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/init_main.c14
1 files changed, 12 insertions, 2 deletions
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");