From 9bf1f0849061723d9fb195991b0b6f198708c73d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 13 Oct 2025 17:10:57 -0400 Subject: kern/amd64: Init LAPIC before PCI bus driver A lot of PCI(e) devices rely in MSI-X which pokes the Local APIC via MMIO, we'll want the LAPIC up before PCI(e) Signed-off-by: Ian Moffett --- src/sys/arch/amd64/boot/boot_chip.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sys/arch/amd64/boot/boot_chip.c') diff --git a/src/sys/arch/amd64/boot/boot_chip.c b/src/sys/arch/amd64/boot/boot_chip.c index e2a2d6b..d6e082a 100644 --- a/src/sys/arch/amd64/boot/boot_chip.c +++ b/src/sys/arch/amd64/boot/boot_chip.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -85,6 +86,7 @@ platform_boot(void) } init_tss(core); + lapic_init(); chipset_init(); irq_init_pins(); } -- cgit v1.2.3