Check that needed ACPI tables are found

This commit is contained in:
josh committed 2023-09-17 13:40:26 -04:00
1 parent fa4de31aa4
commit ba0befa21b
1 file changed
+8
+8
View File
@@ -161,6 +161,14 @@ struct Acpi
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)