From 5053cf7f4c800a71f9aa301072197e94390bcb37 Mon Sep 17 00:00:00 2001 From: yshang1 Date: Thu, 8 Nov 2007 03:40:50 +0000 Subject: 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 --- MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'MdePkg/Library/BaseMemoryLibOptDxe/Ia32') diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S index 406a8f8d1a..c46fde6439 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S @@ -37,15 +37,15 @@ _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 + shrd $2, %ecx, %ecx rep - stosd + stosl movl %ecx, %edx andl $3, %ecx rep -- cgit v1.2.3