mirror of https://review.coreboot.org/STM.git
Fix AsmVmRead IA32.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
62f54952a2
commit
8ff8546ef5
|
@ -26,7 +26,8 @@ AsmVmRead PROC PUBLIC
|
|||
DB 0fh, 078h, 0c1h ; VMREAD rcx, rax
|
||||
pushfd
|
||||
pop eax
|
||||
mov [esp + 8], ecx
|
||||
mov edx, [esp + 8]
|
||||
mov [edx], ecx
|
||||
ret
|
||||
AsmVmRead ENDP
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ ASM_PFX(AsmVmRead):
|
|||
.byte 0x0f, 0x78, 0xc1 # VMREAD rcx, rax
|
||||
pushfl
|
||||
pop %eax
|
||||
movl %ecx, 8(%esp)
|
||||
movl 8(%esp), %edx
|
||||
movl %ecx, (%edx)
|
||||
ret
|
||||
|
||||
|
|
Loading…
Reference in New Issue