summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseMemoryLibRepStr/Ia32
diff options
context:
space:
mode:
authorbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-13 16:06:40 +0000
committerbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-06-13 16:06:40 +0000
commit09e91c8e30b75cce466b75fec6c0ed6d91f5861a (patch)
treee2735c0af93c31646f9c2c10c4bd8901a3922a45 /MdePkg/Library/BaseMemoryLibRepStr/Ia32
parentc0e96fed1402f44ff4542346865db2a27b979c24 (diff)
downloadedk2-platforms-09e91c8e30b75cce466b75fec6c0ed6d91f5861a.tar.xz
Sync SetMem64 with MASM version.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@500 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibRepStr/Ia32')
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.s15
1 files changed, 8 insertions, 7 deletions
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.s b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.s
index 1a12bc6ee5..5172c306b1 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.s
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.s
@@ -22,19 +22,20 @@
#------------------------------------------------------------------------------
.386:
+ #.MODEL flat,C
.code:
-.global InternalMemSetMem64
-InternalMemSetMem64:
+.global _InternalMemSetMem64
+_InternalMemSetMem64:
push %edi
- movl 12(%esp),%ecx
- movl 16(%esp),%eax
- movl 20(%esp),%edx
- movl 8(%esp),%edi
+ movl 12(%esp), %ecx
+ movl 16(%esp), %eax
+ movl 20(%esp), %edx
+ movl 8(%esp), %edi
L0:
mov %eax,-8(%edi,%ecx,8)
mov %edx,-4(%edi,%ecx,8)
loop L0
- movl %edi,%eax
+ movl %edi, %eax
pop %edi
ret