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;