diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-04-21 13:44:43 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-04-27 03:13:33 +0000 |
commit | 121d3d57adc35ed34204f983a72590f978939b1c (patch) | |
tree | 7a91d451983c0f44208ae65629a0e3fa66ec725c /src/arch/x86/acpi.c | |
parent | 7186e28001ff01e9f48f838eab8ee462c3e8155c (diff) |
ACPI: Make FADT entries for SMI architectural
Change-Id: I80aa71b813ab8e50801a66556d45ff66804ad349
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74600
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/arch/x86/acpi.c')
-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; + } } |