summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/EbcDxe
diff options
context:
space:
mode:
authorjchen20 <jchen20@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-24 02:21:42 +0000
committerjchen20 <jchen20@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-24 02:21:42 +0000
commitff8c78657ea2adcb83e8594fcbb75778fdf120d7 (patch)
tree8b6cfd12e7ea522394087e9a7357d4fa14ec0e55 /MdeModulePkg/Universal/EbcDxe
parente13288c248511e6b68fe8d252f42ac1744ecfb85 (diff)
downloadedk2-platforms-ff8c78657ea2adcb83e8594fcbb75778fdf120d7.tar.xz
fixed the bug in .S file to make the EBC driver work for UNIXGCC build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10055 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/EbcDxe')
-rw-r--r--MdeModulePkg/Universal/EbcDxe/X64/EbcLowLevel.S14
1 files changed, 7 insertions, 7 deletions
diff --git a/MdeModulePkg/Universal/EbcDxe/X64/EbcLowLevel.S b/MdeModulePkg/Universal/EbcDxe/X64/EbcLowLevel.S
index e7bda2f5e3..19fa11f686 100644
--- a/MdeModulePkg/Universal/EbcDxe/X64/EbcLowLevel.S
+++ b/MdeModulePkg/Universal/EbcDxe/X64/EbcLowLevel.S
@@ -47,19 +47,19 @@ ASM_PFX(EbcLLCALLEXNative):
mov %rcx, %rbx
# Set stack pointer to new value
- sub %r8, %rdx
- sub %rsp, %r8
+ sub %rdx, %r8
+ sub %r8, %rsp
mov %rsp, %rcx
- sub %rsp, 0x20
+ sub $0x20, %rsp
call ASM_PFX(CopyMem)
- add %rsp, 0x20
+ add $0x20, %rsp
# Considering the worst case, load 4 potiential arguments
# into registers.
mov (%rsp), %rcx
- mov 8(%rsp), %rdx
- mov 10(%rsp), %r8
- mov 18(%rsp), %r9
+ mov 0x8(%rsp), %rdx
+ mov 0x10(%rsp), %r8
+ mov 0x18(%rsp), %r9
# Now call the external routine
call *%rbx