From 06fc2c2af5db74ba938a65f72bf505baa5eec23b Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 23 Nov 2019 17:45:47 +0100 Subject: Some formatting --- src/kernel/acpi/acpi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/kernel/acpi') 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() { -- cgit v1.2.3