diff options
author | Marvin Borner | 2020-03-18 16:41:21 +0100 |
---|---|---|
committer | Marvin Borner | 2020-03-18 16:41:21 +0100 |
commit | c6657aac0c5d5ecf347bc082cb6df38e1174d297 (patch) | |
tree | 5db660dd74d9741cf1105290d4584d9a1fdb7020 /src/kernel/acpi/acpi.c | |
parent | add6efeb22ffb7695d5c9addcef073fc653f700e (diff) |
Replaced asm calls with sweet function
Diffstat (limited to 'src/kernel/acpi/acpi.c')
-rw-r--r-- | src/kernel/acpi/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |