1 /* SPDX-License-Identifier: GPL-2.0-only */
5 #include <cpu/x86/smm.h>
8 * calls into SMM with the given cmd and subcmd in eax, and arg in ebx
10 * static inline because the resulting assembly is often smaller than
11 * the call sequence due to constant folding.
13 static inline u32
call_smm(u8 cmd
, u8 subcmd
, void *arg
)
16 __asm__
__volatile__ (
19 : "a" ((subcmd
<< 8) | cmd
), "b" (arg
), "i" (APM_CNT
));