mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
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:
parent
687add7035
commit
8672ccb305
@ -21,9 +21,6 @@
|
|||||||
#
|
#
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
.386:
|
|
||||||
.code:
|
|
||||||
|
|
||||||
.globl ASM_PFX(InternalMemSetMem)
|
.globl ASM_PFX(InternalMemSetMem)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -38,18 +35,16 @@ ASM_PFX(InternalMemSetMem):
|
|||||||
push %edi
|
push %edi
|
||||||
movl 12(%esp),%ecx
|
movl 12(%esp),%ecx
|
||||||
movb 16(%esp),%al
|
movb 16(%esp),%al
|
||||||
movb %ah, %al
|
movb %al, %ah
|
||||||
shrd $16, %eax, %edx
|
shrd $16, %eax, %edx
|
||||||
shld $16, %edx, %eax
|
shld $16, %edx, %eax
|
||||||
movl %edx, %ecx
|
|
||||||
movl 8(%esp),%edi
|
|
||||||
shrd $2, %ecx, %ecx
|
|
||||||
rep
|
|
||||||
stosl
|
|
||||||
movl %ecx, %edx
|
movl %ecx, %edx
|
||||||
|
movl 8(%esp),%edi
|
||||||
|
shr $2, %ecx
|
||||||
|
rep stosl
|
||||||
|
movl %edx, %ecx
|
||||||
andl $3, %ecx
|
andl $3, %ecx
|
||||||
rep
|
rep stosb
|
||||||
stosb
|
|
||||||
movl 8(%esp),%eax
|
movl 8(%esp),%eax
|
||||||
pop %edi
|
pop %edi
|
||||||
ret
|
ret
|
||||||
|
Loading…
x
Reference in New Issue
Block a user