aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/acpi
diff options
context:
space:
mode:
authorMarvin Borner2019-11-03 21:37:31 +0100
committerMarvin Borner2019-11-03 21:37:31 +0100
commit2180357ff5edbd4c85e125ea5c45d9b2a2026944 (patch)
tree4de62d243617c54afc0d0bfdc56caa668a22c0fb /src/kernel/acpi
parent39b20774fc4684f390aa426148371c316e37c98d (diff)
Began system management bios implementation and fixed things
Diffstat (limited to 'src/kernel/acpi')
-rw-r--r--src/kernel/acpi/acpi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/acpi/acpi.c b/src/kernel/acpi/acpi.c
index e0d260b..1cf5ca6 100644
--- a/src/kernel/acpi/acpi.c
+++ b/src/kernel/acpi/acpi.c
@@ -155,6 +155,7 @@ int acpi_install() {
SCI_EN = 1;
vga_log("Installed ACPI", 5);
+ acpi_enable();
return 0;
} // Else: \_S5 parse error
@@ -168,8 +169,6 @@ int acpi_install() {
}
void acpi_poweroff() {
- acpi_enable();
-
if (SCI_EN == 0) {
serial_write("ACPI shutdown is not supported\n");
return;