mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-30 00:08:03 +00:00
Call BeforeShutdown before shutting down
This commit is contained in:
parent
cfb69bf15a
commit
ffdbc6e598
@ -6,6 +6,7 @@
|
|||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
|
||||||
#include "cpu/apic.hpp"
|
#include "cpu/apic.hpp"
|
||||||
|
#include "../../kernel.h"
|
||||||
|
|
||||||
#define ACPI_TIMER 0x0001
|
#define ACPI_TIMER 0x0001
|
||||||
#define ACPI_BUSMASTER 0x0010
|
#define ACPI_BUSMASTER 0x0010
|
||||||
@ -60,6 +61,7 @@ namespace ACPI
|
|||||||
}
|
}
|
||||||
else if (Event & ACPI_POWER_BUTTON)
|
else if (Event & ACPI_POWER_BUTTON)
|
||||||
{
|
{
|
||||||
|
BeforeShutdown();
|
||||||
this->Shutdown();
|
this->Shutdown();
|
||||||
Time::Clock tm = Time::ReadClock();
|
Time::Clock tm = Time::ReadClock();
|
||||||
while (tm.Second == Time::ReadClock().Second)
|
while (tm.Second == Time::ReadClock().Second)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user