From c0a4c895e96a2539c308a35228c3ab9088af84db Mon Sep 17 00:00:00 2001 From: Felix Held Date: Thu, 4 Jan 2024 18:31:35 +0100 Subject: cpu/x86/smi_trigger: use call_smm Use call_smm instead of writing the command number directly to the APMC SMI command IO port. Signed-off-by: Felix Held Change-Id: Iefbdb3d17932d6db6a17b5771436ede220c714fb Reviewed-on: https://review.coreboot.org/c/coreboot/+/79828 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/cpu/x86/smi_trigger.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cpu/x86/smi_trigger.c b/src/cpu/x86/smi_trigger.c index 5c63b9e92a..52c72472b2 100644 --- a/src/cpu/x86/smi_trigger.c +++ b/src/cpu/x86/smi_trigger.c @@ -3,6 +3,7 @@ #include #include #include +#include #include static void apmc_log(const char *fn, u8 cmd) @@ -38,7 +39,7 @@ enum cb_err apm_control(u8 cmd) apmc_log(__func__, cmd); /* Now raise the SMI. */ - outb(cmd, pm_acpi_smi_cmd_port()); + call_smm(cmd, 0, NULL); printk(BIOS_DEBUG, "APMC done.\n"); return CB_SUCCESS; -- cgit v1.2.3