;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2016 - 2017, 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
; 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