summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/include/smm_call.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/x86/include/smm_call.h b/src/arch/x86/include/smm_call.h
index c0d96c0182..66925c4a06 100644
--- a/src/arch/x86/include/smm_call.h
+++ b/src/arch/x86/include/smm_call.h
@@ -11,13 +11,14 @@
*/
static inline u32 call_smm(u8 cmd, u8 subcmd, void *arg)
{
+ const uint16_t apmc_port = pm_acpi_smi_cmd_port();
u32 res = 0;
__asm__ __volatile__ (
"outb %%al, %%dx"
: "=a" (res)
: "a" ((subcmd << 8) | cmd),
"b" (arg),
- "d" (APM_CNT)
+ "d" (apmc_port)
: "memory");
return res;
}