From 76b4d4408ec450d8f8a3aee7223b67da1ce0e2cb Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 15 Sep 2025 13:01:37 -0400 Subject: 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 --- src/sys/os/os_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sys/os/os_init.c') 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 (;;); } -- cgit v1.2.3