Kernel: Implement ACPI reset

This commit is contained in:
2024-04-22 21:12:13 +03:00
parent 195c5e92a4
commit e7e1dd91c7
5 changed files with 167 additions and 46 deletions
+5
View File
@@ -32,6 +32,10 @@ namespace Kernel::ACPI
// This function will return only if there was an error
void poweroff();
// This function will reset the system
// This function will return only if there was an error
void reset();
void handle_irq() override;
private:
@@ -40,6 +44,7 @@ namespace Kernel::ACPI
FADT& fadt() { return *m_fadt; }
bool prepare_sleep(uint8_t sleep_state);
void acpi_event_task();
private: