summaryrefslogtreecommitdiff
path: root/src/sys/os
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-15 13:01:37 -0400
committerIan Moffett <ian@osmora.org>2025-09-15 13:02:17 -0400
commit76b4d4408ec450d8f8a3aee7223b67da1ce0e2cb (patch)
tree11217d920d871127d21ec50ae9b64c976264d3b4 /src/sys/os
parent6bd92c969a6f4aefee258adc79a3ab0bde9443b2 (diff)
kernel/amd64: Add task state segment logic
This commit implements the task state segment and splits up processor initialization into two seperate stages. The cpu_conf() function is apart of the first stage and sets up things that should be going by the time the kernel is started / early init. The cpu_init() function runs later functions that initialize further platform specific subsystems. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/os')
-rw-r--r--src/sys/os/os_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sys/os/os_init.c b/src/sys/os/os_init.c
index ca4d0a9..00f5ffe 100644
--- a/src/sys/os/os_init.c
+++ b/src/sys/os/os_init.c
@@ -16,13 +16,14 @@ main(void)
{
printf("booting l5 lunos v0.0.1...\n");
acpi_early_init();
- cpu_conf(&g_bsp);
cons_init();
syslog_toggle(true);
+ cpu_conf(&g_bsp);
vm_init();
+ cpu_init(&g_bsp);
panic("end of kernel reached\n");
for (;;);
}