1) Fix bugs in BaseMemoryLibOptXXX instances in MdePkg.
2) Add BaseMemoryLibOptXXX in MdePkg.dsc. 3) Clean up the MdeModulePkg.dsc. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4286 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -40,7 +40,7 @@ _InternalMemCopyMem:
|
||||
movl 20(%esp), %edx # edx <- Count
|
||||
cmpl %esi, %edi
|
||||
je L_CopyDone
|
||||
cmpl %edx, $0
|
||||
cmpl $0, %edx
|
||||
je L_CopyDone
|
||||
leal -1(%esi, %edx), %eax # eax <- End of Source
|
||||
cmpl %esi, %edi
|
||||
|
@@ -37,18 +37,18 @@
|
||||
_InternalMemSetMem:
|
||||
push %edi
|
||||
movl 12(%esp),%ecx
|
||||
movl 16(%esp),%al
|
||||
movb 16(%esp),%al
|
||||
movb %ah, %al
|
||||
shrd %edx, %eax, $16
|
||||
shld %eax, %edx, $16
|
||||
shrd $16, %eax, %edx
|
||||
shld $16, %edx, %eax
|
||||
movl %edx, %ecx
|
||||
movl 8(%esp),%edi
|
||||
shr $2, %ecx
|
||||
rep
|
||||
stosd
|
||||
shrd $2, %ecx, %ecx
|
||||
rep
|
||||
|
||||
stosl
|
||||
movl %ecx, %edx
|
||||
rep
|
||||
andl $3, %ecx
|
||||
rep
|
||||
stosb
|
||||
movl 8(%esp),%eax
|
||||
|
Reference in New Issue
Block a user