Fix the bug that SetMem.S of BaseMemoryLibOptDxe is incorrect.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8207 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
xli24 2009-04-30 02:59:35 +00:00
parent 687add7035
commit 8672ccb305
1 changed files with 6 additions and 11 deletions

View File

@ -21,9 +21,6 @@
#
#------------------------------------------------------------------------------
.386:
.code:
.globl ASM_PFX(InternalMemSetMem)
#------------------------------------------------------------------------------
@ -38,18 +35,16 @@ ASM_PFX(InternalMemSetMem):
push %edi
movl 12(%esp),%ecx
movb 16(%esp),%al
movb %ah, %al
movb %al, %ah
shrd $16, %eax, %edx
shld $16, %edx, %eax
movl %edx, %ecx
movl 8(%esp),%edi
shrd $2, %ecx, %ecx
rep
stosl
movl %ecx, %edx
movl 8(%esp),%edi
shr $2, %ecx
rep stosl
movl %edx, %ecx
andl $3, %ecx
rep
stosb
rep stosb
movl 8(%esp),%eax
pop %edi
ret