summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/DebugSupportDxe
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2018-01-10 23:24:28 +0800
committerLiming Gao <liming.gao@intel.com>2018-01-16 23:30:12 +0800
commit62382925c90eb54de6413208f561b24a0b97e337 (patch)
treea6938df369375d3545d2a02bdf1f6ea48d7a6ff1 /MdeModulePkg/Universal/DebugSupportDxe
parent2583352f2427be24019e97f18905d8d2b1c64872 (diff)
downloadedk2-62382925c90eb54de6413208f561b24a0b97e337.tar.gz
edk2-62382925c90eb54de6413208f561b24a0b97e337.tar.bz2
edk2-62382925c90eb54de6413208f561b24a0b97e337.zip
MdeModulePkg: Update DebugSupportDxe to pass XCODE5 build
XCODE5 doesn't support absolute addressing in the assembly code. This change uses lea instruction to get the address. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Cc: Andrew Fish <afish@apple.com> Cc: Star Zeng <star.zeng@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/DebugSupportDxe')
-rw-r--r--MdeModulePkg/Universal/DebugSupportDxe/X64/AsmFuncs.nasm6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/DebugSupportDxe/X64/AsmFuncs.nasm b/MdeModulePkg/Universal/DebugSupportDxe/X64/AsmFuncs.nasm
index 134842a68a..31d8b0a717 100644
--- a/MdeModulePkg/Universal/DebugSupportDxe/X64/AsmFuncs.nasm
+++ b/MdeModulePkg/Universal/DebugSupportDxe/X64/AsmFuncs.nasm
@@ -1,7 +1,7 @@
;/** @file
; Low level x64 routines used by the debug support driver.
;
-; Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; 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
@@ -226,7 +226,7 @@ ASM_PFX(CommonIdtEntry):
pop rax
add rsp, 8 ; pop vector number
mov [AppRsp], rsp ; save stack top
- mov rsp, DebugStackBegin ; switch to debugger stack
+ lea rsp, [DebugStackBegin] ; switch to debugger stack
sub rsp, 8 ; leave space for vector number
;; UINT64 Rdi, Rsi, Rbp, Rsp, Rbx, Rdx, Rcx, Rax;
@@ -529,7 +529,7 @@ Chain:
push rbx
mov rax, cs
push rax
- mov rax, PhonyIretq
+ lea rax, [PhonyIretq]
push rax
iretq
PhonyIretq: