From 6262c51459bd48897e7a41094efa319edb2efb58 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 25 Feb 2024 23:40:16 -0500 Subject: kernel/amd64: machdep: Refactor Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/machdep.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/arch') diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index 19c4901..7eb1407 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -150,6 +150,10 @@ processor_init(void) CPU_INFO_LOCK(cur_cpu); init_tss(cur_cpu); + /* + * See if there are things that have not been set up, + * set them up if so... + */ if (!__TEST(init_flags, INIT_FLAG_ACPI)) { /* * Parse the MADT... This is needed to fetch required information @@ -166,7 +170,7 @@ processor_init(void) cur_cpu->lapic_base = acpi_get_lapic_base(); CPU_INFO_UNLOCK(cur_cpu); - lapic_init(); /* Per core */ + lapic_init(); /* Use spectre mitigation if enabled */ if (try_spectre_mitigate != NULL) -- cgit v1.2.3