diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-13 05:58:02 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-07-13 05:58:02 +0000 |
commit | f23c214dca7068e1b38bbf864a2c08065b20f915 (patch) | |
tree | 4aa0549acfe704f6d249e87919647449f242df05 /MdePkg/Library/BaseMemoryLibRepStr/Ia32 | |
parent | 3e50a75cd2c7be43a2ea258ba6b9bc278cc78161 (diff) | |
download | edk2-f23c214dca7068e1b38bbf864a2c08065b20f915.tar.gz edk2-f23c214dca7068e1b38bbf864a2c08065b20f915.tar.bz2 edk2-f23c214dca7068e1b38bbf864a2c08065b20f915.zip |
Fix bug in .S files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@952 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibRepStr/Ia32')
-rw-r--r-- | MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.S | 4 | ||||
-rw-r--r-- | MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.S | 1 | ||||
-rw-r--r-- | MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.S | 1 |
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 |