summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseMemoryLibRepStr
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibRepStr')
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S4
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S1
-rw-r--r--MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S1
3 files changed, 4 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S
index 4215c20393..e80a00deb4 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S
@@ -53,6 +53,6 @@ L0:
movsb # Copy bytes backward
cld
movl 12(%esp),%eax # eax <- Destination as return value
- pop %edi
- pop %esi
+ pop %edi
+ pop %esi
ret
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S
index f4e3e282a2..da40c149e9 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S
@@ -39,4 +39,5 @@ _InternalMemScanMem8:
repne scasb
leal -1(%edi),%eax
cmovnz %ecx, %eax
+ pop %edi
ret
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S
index 92eea21952..1e59587317 100644
--- a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S
+++ b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S
@@ -33,4 +33,5 @@ _InternalMemSetMem:
rep
stosb
movl 8(%esp),%eax
+ pop %edi
ret