apic: Do not panic if APIC not found

This commit is contained in:
mintsuki 2021-09-21 14:49:48 +02:00
parent 5e023bce3d
commit f73a19b5d5
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}