From ba0befa21bd9b2b2c5451f74ba400c447230a85c Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 17 Sep 2023 13:40:26 -0400 Subject: [PATCH] Check that needed ACPI tables are found --- src/hulk/acpi.d | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/hulk/acpi.d b/src/hulk/acpi.d index 82167a4..8823fa1 100644 --- a/src/hulk/acpi.d +++ b/src/hulk/acpi.d @@ -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)