From ab91fba7200bea7596a95c654c1c467df79b656a Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Wed, 31 Jan 2024 10:02:15 +0000 Subject: model_dep: Fix serial console with APIC enabled Move cninit() further down so that IOAPIC has a chance to initialize before the com port interrupt is unmasked in the IOAPIC, fixing a fault and reboot. Message-ID: <20240131100210.1354522-1-damien@zamaudio.com> --- i386/i386at/model_dep.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'i386') diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index b0a55754..7c575ce2 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -137,11 +137,6 @@ extern void linux_init(void); */ void machine_init(void) { - /* - * Initialize the console. - */ - cninit(); - /* * Make more free memory. * @@ -169,6 +164,11 @@ void machine_init(void) #endif clkstart(); + /* + * Initialize the console. + */ + cninit(); + #ifdef LINUX_DEV /* * Initialize Linux drivers. -- cgit v1.2.3