From c6657aac0c5d5ecf347bc082cb6df38e1174d297 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 18 Mar 2020 16:41:21 +0100 Subject: Replaced asm calls with sweet function --- src/kernel/acpi/acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/acpi') diff --git a/src/kernel/acpi/acpi.c b/src/kernel/acpi/acpi.c index 0122450..e6e5b91 100644 --- a/src/kernel/acpi/acpi.c +++ b/src/kernel/acpi/acpi.c @@ -178,7 +178,7 @@ int acpi_install() void acpi_poweroff() { - asm ("cli"); + cli(); if (SCI_EN == 0) { warn("ACPI shutdown is not supported\n"); return; @@ -197,7 +197,7 @@ void acpi_poweroff() void reboot() { - asm ("cli"); + cli(); uint8_t good = 0x02; while (good & 0x02) good = inb(0x64); -- cgit v1.2.3