;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>\r
; This program and the accompanying materials\r
; are licensed and made available under the terms and conditions of the BSD License\r
; which accompanies this distribution. The full text of the license may be found at\r
add rsp, 0x28\r
mov ebx, eax\r
mov eax, 4\r
- DB 0x0f, 0x01, 0x0c1 ; VMCALL\r
+ vmcall\r
jmp $\r
\r
global ASM_PFX(OnStmSetup)\r
; Check XD disable bit\r
;\r
xor r8, r8\r
- mov rax, ASM_PFX(gStmXdSupported)\r
+ lea rax, [ASM_PFX(gStmXdSupported)]\r
mov al, [rax]\r
cmp al, 0\r
jz @StmXdDone1\r
call ASM_PFX(SmmStmSetup)\r
add rsp, 0x20\r
\r
- mov rax, ASM_PFX(gStmXdSupported)\r
+ lea rax, [ASM_PFX(gStmXdSupported)]\r
mov al, [rax]\r
cmp al, 0\r
jz .11\r
; Check XD disable bit\r
;\r
xor r8, r8\r
- mov rax, ASM_PFX(gStmXdSupported)\r
+ lea rax, [ASM_PFX(gStmXdSupported)]\r
mov al, [rax]\r
cmp al, 0\r
jz @StmXdDone2\r
call ASM_PFX(SmmStmTeardown)\r
add rsp, 0x20\r
\r
- mov rax, ASM_PFX(gStmXdSupported)\r
+ lea rax, [ASM_PFX(gStmXdSupported)]\r
mov al, [rax]\r
cmp al, 0\r
jz .12\r
\r
.12:\r
rsm\r
-\r