From 6ed636b8efe4d50ab013cf337ad634513eddbb6d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 18 Nov 2025 01:02:27 -0500 Subject: kern/amd64: Do low-level processor configuration This commit seperates low-level processor configuration into the cpu_loinit() function. This is to be called for the BSP and per AP. Signed-off-by: Ian Moffett --- sys/arch/amd64/cpu/mp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/arch/amd64/cpu/mp.c') diff --git a/sys/arch/amd64/cpu/mp.c b/sys/arch/amd64/cpu/mp.c index 09a4249..5ab7815 100644 --- a/sys/arch/amd64/cpu/mp.c +++ b/sys/arch/amd64/cpu/mp.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -261,6 +262,7 @@ cpu_lm_entry(void) : "rax", "rbx" ); + cpu_loinit(); for (;;) { __asmv("cli; hlt"); } -- cgit v1.2.3