Author: tkreuzer
Date: Mon May 4 19:27:37 2009
New Revision: 40785
URL:
http://svn.reactos.org/svn/reactos?rev=40785&view=rev
Log:
Fix asm implementations of RtlInterlockedPopEntrySList, RtlInterlockedPushEntrySList and
RtlInterlockedFlushSList, by correcting the stack offset for the parameters. Thanks to
Pigglesworth for the hint.
Modified:
trunk/reactos/lib/rtl/i386/interlck.S
Modified: trunk/reactos/lib/rtl/i386/interlck.S
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/i386/interlck.S?re…
==============================================================================
--- trunk/reactos/lib/rtl/i386/interlck.S [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/i386/interlck.S [iso-8859-1] Mon May 4 19:27:37 2009
@@ -24,13 +24,13 @@
push ebp
/* Load ListHead into ebp */
- mov ebp, [esp + 8]
+ mov ebp, [esp + 12]
/* Load ListHead->Next into eax */
mov eax, [ebp]
/* Load ListHead->Depth and ListHead->Sequence into edx */
- mov edx, [ebp+4]
+ mov edx, [ebp + 4]
1:
/* Check if ListHead->Next is NULL */
@@ -70,10 +70,10 @@
push ebp
/* Load ListHead into ebp */
- mov ebp, [esp + 4]
+ mov ebp, [esp + 12]
/* Load ListEntry into ebx */
- mov ebx, [esp + 12]
+ mov ebx, [esp + 16]
/* Load ListHead->Next into eax */
mov eax, [ebp]
@@ -116,7 +116,7 @@
xor ebx, ebx
/* Load ListHead into ebp */
- mov ebp, [esp + 4]
+ mov ebp, [esp + 12]
/* Load ListHead->Next into eax */
mov eax, [ebp]