mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
UefiCpuPkg/SmmCpuFeaturesLib: Fix Ia32/SmiEntry.asm build issue
Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com>
This commit is contained in:
parent
6d92ae11d1
commit
6afc643ce0
@ -1,5 +1,5 @@
|
|||||||
;------------------------------------------------------------------------------ ;
|
;------------------------------------------------------------------------------ ;
|
||||||
; Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
; Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||||
; This program and the accompanying materials
|
; This program and the accompanying materials
|
||||||
; are licensed and made available under the terms and conditions of the BSD License
|
; are licensed and made available under the terms and conditions of the BSD License
|
||||||
; which accompanies this distribution. The full text of the license may be found at
|
; which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -201,7 +201,7 @@ CommonHandler:
|
|||||||
call eax
|
call eax
|
||||||
add esp, 4
|
add esp, 4
|
||||||
|
|
||||||
mov eax, gStmXdSupported
|
mov eax, offset gStmXdSupported
|
||||||
mov al, [eax]
|
mov al, [eax]
|
||||||
cmp al, 0
|
cmp al, 0
|
||||||
jz @f
|
jz @f
|
||||||
@ -221,7 +221,7 @@ _StmSmiHandler:
|
|||||||
; Check XD disable bit
|
; Check XD disable bit
|
||||||
;
|
;
|
||||||
xor esi, esi
|
xor esi, esi
|
||||||
mov eax, gStmXdSupported
|
mov eax, offset gStmXdSupported
|
||||||
mov al, [eax]
|
mov al, [eax]
|
||||||
cmp al, 0
|
cmp al, 0
|
||||||
jz @StmXdDone
|
jz @StmXdDone
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
;------------------------------------------------------------------------------ ;
|
;------------------------------------------------------------------------------ ;
|
||||||
; Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
|
; Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||||
; This program and the accompanying materials
|
; This program and the accompanying materials
|
||||||
; are licensed and made available under the terms and conditions of the BSD License
|
; are licensed and made available under the terms and conditions of the BSD License
|
||||||
; which accompanies this distribution. The full text of the license may be found at
|
; which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -26,11 +26,16 @@ EXTERNDEF gcStmPsd:BYTE
|
|||||||
EXTERNDEF SmmStmExceptionHandler:PROC
|
EXTERNDEF SmmStmExceptionHandler:PROC
|
||||||
EXTERNDEF SmmStmSetup:PROC
|
EXTERNDEF SmmStmSetup:PROC
|
||||||
EXTERNDEF SmmStmTeardown:PROC
|
EXTERNDEF SmmStmTeardown:PROC
|
||||||
|
EXTERNDEF gStmXdSupported:BYTE
|
||||||
|
|
||||||
CODE_SEL = 08h
|
CODE_SEL = 08h
|
||||||
DATA_SEL = 20h
|
DATA_SEL = 20h
|
||||||
TSS_SEL = 40h
|
TSS_SEL = 40h
|
||||||
|
|
||||||
|
MSR_IA32_MISC_ENABLE EQU 1A0h
|
||||||
|
MSR_EFER EQU 0c0000080h
|
||||||
|
MSR_EFER_XD EQU 0800h
|
||||||
|
|
||||||
.data
|
.data
|
||||||
|
|
||||||
gcStmPsd LABEL BYTE
|
gcStmPsd LABEL BYTE
|
||||||
@ -88,7 +93,7 @@ _OnStmSetup PROC
|
|||||||
; Check XD disable bit
|
; Check XD disable bit
|
||||||
;
|
;
|
||||||
xor esi, esi
|
xor esi, esi
|
||||||
mov eax, gStmXdSupported
|
mov eax, offset gStmXdSupported
|
||||||
mov al, [eax]
|
mov al, [eax]
|
||||||
cmp al, 0
|
cmp al, 0
|
||||||
jz @StmXdDone1
|
jz @StmXdDone1
|
||||||
@ -109,7 +114,7 @@ _OnStmSetup PROC
|
|||||||
|
|
||||||
call SmmStmSetup
|
call SmmStmSetup
|
||||||
|
|
||||||
mov eax, gStmXdSupported
|
mov eax, offset gStmXdSupported
|
||||||
mov al, [eax]
|
mov al, [eax]
|
||||||
cmp al, 0
|
cmp al, 0
|
||||||
jz @f
|
jz @f
|
||||||
@ -130,7 +135,7 @@ _OnStmTeardown PROC
|
|||||||
; Check XD disable bit
|
; Check XD disable bit
|
||||||
;
|
;
|
||||||
xor esi, esi
|
xor esi, esi
|
||||||
mov eax, gStmXdSupported
|
mov eax, offset gStmXdSupported
|
||||||
mov al, [eax]
|
mov al, [eax]
|
||||||
cmp al, 0
|
cmp al, 0
|
||||||
jz @StmXdDone2
|
jz @StmXdDone2
|
||||||
@ -151,7 +156,7 @@ _OnStmTeardown PROC
|
|||||||
|
|
||||||
call SmmStmTeardown
|
call SmmStmTeardown
|
||||||
|
|
||||||
mov eax, gStmXdSupported
|
mov eax, offset gStmXdSupported
|
||||||
mov al, [eax]
|
mov al, [eax]
|
||||||
cmp al, 0
|
cmp al, 0
|
||||||
jz @f
|
jz @f
|
||||||
|
Loading…
x
Reference in New Issue
Block a user