diff options
author | Marvin Borner | 2019-11-23 17:45:47 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-23 17:45:47 +0100 |
commit | 06fc2c2af5db74ba938a65f72bf505baa5eec23b (patch) | |
tree | 50d0138c115ba0ec24c4d7c15318693d2b73ae4e /src/kernel/acpi | |
parent | 9702485247be55f092080a38e3fe3417ee6e6df3 (diff) |
Some formatting
Diffstat (limited to 'src/kernel/acpi')
-rw-r--r-- | src/kernel/acpi/acpi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/acpi/acpi.c b/src/kernel/acpi/acpi.c index 6425449..919d0be 100644 --- a/src/kernel/acpi/acpi.c +++ b/src/kernel/acpi/acpi.c @@ -170,6 +170,7 @@ int acpi_install() { } void acpi_poweroff() { + asm volatile ("cli"); if (SCI_EN == 0) { warn("ACPI shutdown is not supported\n"); return; @@ -184,8 +185,6 @@ void acpi_poweroff() { send_w(0x604, 0x2000); // QEMU send_w(0x4004, 0x3400); // VirtualBox } - - serial_write("Shutdown failed\n"); } void reboot() { |