diff options
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/include/smm.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/arch/x86/include/smm.h b/src/arch/x86/include/smm.h index e6db9dcf04..c0d96c0182 100644 --- a/src/arch/x86/include/smm.h +++ b/src/arch/x86/include/smm.h @@ -13,8 +13,11 @@ static inline u32 call_smm(u8 cmd, u8 subcmd, void *arg) { u32 res = 0; __asm__ __volatile__ ( - "outb %b0, %3" + "outb %%al, %%dx" : "=a" (res) - : "a" ((subcmd << 8) | cmd), "b" (arg), "i" (APM_CNT)); + : "a" ((subcmd << 8) | cmd), + "b" (arg), + "d" (APM_CNT) + : "memory"); return res; } |