From f73a19b5d5fc1fe696d90c691b067710f16b5c15 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Tue, 21 Sep 2021 14:49:48 +0200 Subject: [PATCH] apic: Do not panic if APIC not found --- stage23/sys/lapic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stage23/sys/lapic.c b/stage23/sys/lapic.c index 142fe3ad..8211f970 100644 --- a/stage23/sys/lapic.c +++ b/stage23/sys/lapic.c @@ -105,7 +105,7 @@ void init_io_apics(void) { struct madt *madt = acpi_get_table("APIC", 0); if (madt == NULL) { - panic("IO APIC error"); + goto out; } for (uint8_t *madt_ptr = (uint8_t *)madt->madt_entries_begin; @@ -134,6 +134,7 @@ void init_io_apics(void) { } } +out: already_inited = true; }