diff options
author | Ian Moffett <ian@osmora.org> | 2024-02-25 23:40:16 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-02-25 23:40:16 -0500 |
commit | 6262c51459bd48897e7a41094efa319edb2efb58 (patch) | |
tree | d634ec7216d3b9befc4fd2947e00a8f7439304d9 /sys | |
parent | cc595a73cf45ee8b0f0444b844b10bc021d02572 (diff) |
kernel/amd64: machdep: Refactor
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) |