Kernel: Implement poweroff with my AML interpreter

This can succesfully poweroff qemu!
This commit is contained in:
2024-04-10 04:32:35 +03:00
parent 5be38d0702
commit 7a2be05c69
4 changed files with 101 additions and 0 deletions
+4
View File
@@ -22,6 +22,10 @@ namespace Kernel::ACPI
// 2: SAPIC
BAN::ErrorOr<void> enter_acpi_mode(uint8_t mode);
// This function will power off the system
// This function will return only if there was an error
void poweroff();
private:
ACPI() = default;
BAN::ErrorOr<void> initialize_impl();