From 0573378141d1d3b59c8937be83c83bcbd2853d66 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 15 Sep 2025 16:23:45 -0400 Subject: kern/amd64: Move i8259/uart init to chipset_init() These are chipset specific and independent of the processor, therefore they must only be initialized once. Signed-off-by: Ian Moffett --- src/sys/arch/amd64/boot/boot_chip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sys/arch/amd64/boot/boot_chip.c b/src/sys/arch/amd64/boot/boot_chip.c index 2442bfb..2ff122c 100644 --- a/src/sys/arch/amd64/boot/boot_chip.c +++ b/src/sys/arch/amd64/boot/boot_chip.c @@ -49,6 +49,9 @@ chipset_init(void) once = true; ioapic_init(); + + uart_init(); + i8259_disable(); } /* @@ -75,8 +78,5 @@ platform_boot(void) } init_tss(core); - - i8259_disable(); chipset_init(); - uart_init(); } -- cgit v1.2.3