diff --git a/Architecture/amd64/DifferentiatedSystemDescriptionTable.cpp b/Architecture/amd64/DifferentiatedSystemDescriptionTable.cpp index 4c0b102..d8dcdb1 100644 --- a/Architecture/amd64/DifferentiatedSystemDescriptionTable.cpp +++ b/Architecture/amd64/DifferentiatedSystemDescriptionTable.cpp @@ -6,6 +6,7 @@ #include #include "cpu/apic.hpp" +#include "../../kernel.h" #define ACPI_TIMER 0x0001 #define ACPI_BUSMASTER 0x0010 @@ -60,6 +61,7 @@ namespace ACPI } else if (Event & ACPI_POWER_BUTTON) { + BeforeShutdown(); this->Shutdown(); Time::Clock tm = Time::ReadClock(); while (tm.Second == Time::ReadClock().Second)