diff options
| author | Ian Moffett <ian@osmora.org> | 2025-11-18 01:02:27 -0500 |
|---|---|---|
| committer | Ian Moffett <ian@osmora.org> | 2025-11-18 01:12:21 -0500 |
| commit | 6ed636b8efe4d50ab013cf337ad634513eddbb6d (patch) | |
| tree | 11ac37b13d41c4f5ce98c774b610979bd7c523c1 /sys/arch/amd64/cpu/mp.c | |
| parent | 635f680d45a58a4248f6dc6c833552836c1abed0 (diff) | |
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 <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/cpu/mp.c')
| -rw-r--r-- | sys/arch/amd64/cpu/mp.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <lib/string.h> #include <md/lapic.h> #include <md/msr.h> +#include <md/cpu.h> #include <mu/cpu.h> #include <vm/vm.h> #include <vm/phys.h> @@ -261,6 +262,7 @@ cpu_lm_entry(void) : "rax", "rbx" ); + cpu_loinit(); for (;;) { __asmv("cli; hlt"); } |
