diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-15 16:23:45 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-15 16:23:45 -0400 |
commit | 0573378141d1d3b59c8937be83c83bcbd2853d66 (patch) | |
tree | 76af87d3907c1e9b2968f5dcc1a61f88bb38d56e /src/sys/arch | |
parent | 0f81f3e2adc1528e46ff8df7ef73281917df8adf (diff) |
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 <ian@osmora.org>
Diffstat (limited to 'src/sys/arch')
-rw-r--r-- | src/sys/arch/amd64/boot/boot_chip.c | 6 |
1 files 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(); } |