]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.s
Sync SetMem64 with MASM version.
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibRepStr / Ia32 / SetMem64.s
index 1a12bc6ee5c31d7822c128c131d86e7709bb8ea6..5172c306b1a738b797d0ce0860c9918fcb978fd9 100644 (file)
 #------------------------------------------------------------------------------
 
     .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