1. Updated function headers for all assembly function

2. Optimized register usage in SetMemXX functions in all lib instances
3. Fixed a logical error in CopyMem for all lib instances


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1139 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
bxing
2006-07-28 07:28:19 +00:00
parent 27169a56e6
commit eb227e96bd
106 changed files with 1006 additions and 457 deletions

View File

@@ -21,19 +21,16 @@
#
#------------------------------------------------------------------------------
.686:
#.MODEL flat,C
.xmm:
.code:
.global _InternalMemZeroMem
#------------------------------------------------------------------------------
# VOID *
# _mem_ZeroMem (
# EFIAPI
# InternalMemZeroMem (
# IN VOID *Buffer,
# IN UINTN Count
# )
# );
#------------------------------------------------------------------------------
.global _InternalMemZeroMem
_InternalMemZeroMem:
push %edi
movl 8(%esp), %edi
@@ -42,12 +39,11 @@ _InternalMemZeroMem:
shrl $3, %ecx
jz @ZeroBytes
pxor %mm0, %mm0
L0:
movntq %mm0, (%edi)
L0:
movq %mm0, (%edi)
addl $8, %edi
loop L0
mfence
@ZeroBytes:
@ZeroBytes:
andl $7, %edx
xorl %eax, %eax
movl %edx, %ecx