Check that needed ACPI tables are found

This commit is contained in:
Josh Holtrop 2023-09-17 13:40:26 -04:00
parent fa4de31aa4
commit ba0befa21b

View File

@ -161,6 +161,14 @@ struct Acpi
mcfg.initialize(); mcfg.initialize();
} }
} }
if (madt == null)
{
Klog.fatal_error("MADT table not found");
}
if (mcfg == null)
{
Klog.fatal_error("MCFG table not found");
}
} }
private static void map_table(ulong address, ulong length) private static void map_table(ulong address, ulong length)