summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-10 07:03:04 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-10 07:03:04 +0000
commit15d10a4c78279190cc8aeef0ab9a8b7a9dedff23 (patch)
tree393f205eb3b0d873b495aaf7967efdb7eaabe89a
parent1b86875186e6eb37b81046747a3fa898942cbc3b (diff)
downloadedk2-platforms-15d10a4c78279190cc8aeef0ab9a8b7a9dedff23.tar.xz
Changed to pass the build with Visual Studio 2005
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4074 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.asm6
-rw-r--r--MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.asm6
2 files changed, 6 insertions, 6 deletions
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.asm b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.asm
index c2e4869e47..2080966dca 100644
--- a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.asm
+++ b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.asm
@@ -38,7 +38,7 @@
InternalMemSetMem32 PROC
mov eax, [esp + 4] ; eax <- Buffer as return value
mov ecx, [esp + 8] ; ecx <- Count
- movd mm0, [esp + 12] ; mm0 <- Value
+ movd mm0, dword ptr [esp + 12] ; mm0 <- Value
shr ecx, 1 ; ecx <- number of qwords to set
mov edx, eax ; edx <- Buffer
jz @SetDwords
@@ -46,12 +46,12 @@ InternalMemSetMem32 PROC
psllq mm1, 32
por mm0, mm1
@@:
- movq [edx], mm0
+ movq qword ptr [edx], mm0
lea edx, [edx + 8] ; use "lea" to avoid change in flags
loop @B
@SetDwords:
jnc @F
- movd [edx], mm0
+ movd dword ptr [edx], mm0
@@:
ret
InternalMemSetMem32 ENDP
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.asm b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.asm
index 69406707a6..5fa178caaf 100644
--- a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.asm
+++ b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.asm
@@ -40,9 +40,9 @@ InternalMemSetMem64 PROC
mov ecx, [esp + 8] ; ecx <- Count
test al, 8
mov edx, eax
- movq xmm0, [esp + 12]
+ movq xmm0, qword ptr [esp + 12]
jz @F
- movq [edx], xmm0
+ movq qword ptr [edx], xmm0
add edx, 8
dec ecx
@@:
@@ -56,7 +56,7 @@ InternalMemSetMem64 PROC
mfence
@SetQwords:
jnc @F
- movq [edx], xmm0
+ movq qword ptr [edx], xmm0
@@:
ret
InternalMemSetMem64 ENDP