diff options
Diffstat (limited to 'src/arch/x86')
-rw-r--r-- | src/arch/x86/acpi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/x86/acpi.c b/src/arch/x86/acpi.c index 0ff0ded9bf..e1ef97884c 100644 --- a/src/arch/x86/acpi.c +++ b/src/arch/x86/acpi.c @@ -2,6 +2,7 @@ #include <acpi/acpi.h> #include <cf9_reset.h> +#include <cpu/x86/smm.h> void arch_fill_fadt(acpi_fadt_t *fadt) { @@ -17,4 +18,10 @@ void arch_fill_fadt(acpi_fadt_t *fadt) fadt->flags |= ACPI_FADT_RESET_REGISTER; } + + if (permanent_smi_handler()) { + fadt->smi_cmd = APM_CNT; + fadt->acpi_enable = APM_CNT_ACPI_ENABLE; + fadt->acpi_disable = APM_CNT_ACPI_DISABLE; + } } |