summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-25 10:05:26 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-25 10:05:26 +0000
commitb7089db12047675e829a74674700b03406c432e6 (patch)
tree2b8db83dac416cf6a15e1cf7ded7d802348cbc68 /MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S
parent1a0d7262b42e2eb283a2927fbc5cff71248a8473 (diff)
downloadedk2-platforms-b7089db12047675e829a74674700b03406c432e6.tar.xz
1.Fix .global issue in GAS (EdkT207).
2.Fix Label start with @ (EdkT208). git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1610 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S')
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S b/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S
index d644b34675..349356fb1f 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.S
@@ -21,7 +21,7 @@
#
#------------------------------------------------------------------------------
-.global _InternalMemCopyMem
+.globl _InternalMemCopyMem
#------------------------------------------------------------------------------
# VOID *
@@ -42,7 +42,7 @@ _InternalMemCopyMem:
cmpl %edi, %esi
jae L0
cmpl %edi, %eax # Overlapped?
- jae @CopyBackward # Copy backward if overlapped
+ jae L_CopyBackward # Copy backward if overlapped
L0:
xorl %ecx, %ecx
subl %esi, %ecx
@@ -57,7 +57,7 @@ L1:
movl %edx, %ecx
andl $7, %edx
shrl $3, %ecx # ecx <- # of Qwords to copy
- jz @CopyBytes
+ jz L_CopyBytes
pushl %eax
pushl %eax
movq %mm0, (%esp) # save mm0
@@ -70,12 +70,12 @@ L2:
movq (%esp), %mm0 # restore mm0
popl %ecx # stack cleanup
popl %ecx # stack cleanup
- jmp @CopyBytes
-@CopyBackward:
+ jmp L_CopyBytes
+L_CopyBackward:
movl %eax, %esi # esi <- Last byte in Source
leal -1(%edi,%edx,), %edi # edi <- Last byte in Destination
std
-@CopyBytes:
+L_CopyBytes:
movl %edx, %ecx
rep
movsb