summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/PiSmmCpuDxeSmm/X64
diff options
context:
space:
mode:
authorFeng Tian <feng.tian@intel.com>2016-12-15 13:25:30 +0800
committerFeng Tian <feng.tian@intel.com>2016-12-16 08:27:59 +0800
commitb6fea56cb536423f0b1f99a467f02b9133a8b424 (patch)
treea28d9f9ad56499000d4fabac233861881d7d32f7 /UefiCpuPkg/PiSmmCpuDxeSmm/X64
parent16296a126c99174ad27a6d78229df70e62049310 (diff)
downloadedk2-b6fea56cb536423f0b1f99a467f02b9133a8b424.tar.gz
edk2-b6fea56cb536423f0b1f99a467f02b9133a8b424.tar.bz2
edk2-b6fea56cb536423f0b1f99a467f02b9133a8b424.zip
UefiCpuPkg/PiSmmCpuDxeSmm: Fix .S & .asm build failure
Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Jeff Fan <jeff.fan@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Diffstat (limited to 'UefiCpuPkg/PiSmmCpuDxeSmm/X64')
-rw-r--r--UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S2
-rw-r--r--UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm2
2 files changed, 2 insertions, 2 deletions
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S
index f4761b0160..600d8623cd 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S
@@ -158,7 +158,7 @@ L13:
rdmsr
orw $MSR_EFER_XD,%ax # enable NXE
wrmsr
- jmp @NxeDone
+ jmp NxeDone
SkipNxe:
subl $8, %esp
NxeDone:
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm
index e2fcb6f0d5..c74f82aac8 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm
@@ -222,7 +222,7 @@ _SmiHandler:
add rsp, 200h
- mov rax, ASM_PFX(mXdSupported)
+ mov rax, offset ASM_PFX(mXdSupported)
mov al, [rax]
cmp al, 0
jz @f