diff options
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem.S')
-rw-r--r-- | MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem.S | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem.S index 406a8f8d1a..aa803ca580 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem.S +++ b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem.S @@ -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
andl $3, %ecx
- rep + rep stosb movl 8(%esp),%eax pop %edi |