From ff8c78657ea2adcb83e8594fcbb75778fdf120d7 Mon Sep 17 00:00:00 2001 From: jchen20 Date: Wed, 24 Feb 2010 02:21:42 +0000 Subject: 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 --- MdeModulePkg/Universal/EbcDxe/X64/EbcLowLevel.S | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'MdeModulePkg') 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 -- cgit v1.2.3