[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH gnumach] model_dep: Fix serial console with APIC enabled
From: |
Damien Zammit |
Subject: |
[PATCH gnumach] model_dep: Fix serial console with APIC enabled |
Date: |
Wed, 31 Jan 2024 10:02:15 +0000 |
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.
---
i386/i386at/model_dep.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index a53556e7..e0995c96 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -141,11 +141,6 @@ extern void linux_init(void);
*/
void machine_init(void)
{
- /*
- * Initialize the console.
- */
- cninit();
-
/*
* Make more free memory.
*
@@ -179,6 +174,11 @@ void machine_init(void)
#endif
clkstart();
+ /*
+ * Initialize the console.
+ */
+ cninit();
+
#ifdef LINUX_DEV
/*
* Initialize Linux drivers.
--
2.43.0
- [PATCH gnumach] model_dep: Fix serial console with APIC enabled,
Damien Zammit <=