mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Fix asm implementations of RtlInterlockedPopEntrySList, RtlInterlockedPushEntrySList and RtlInterlockedFlushSList, by correcting the stack offset for the parameters. Thanks to Pigglesworth for the hint.
svn path=/trunk/; revision=40785
This commit is contained in:
parent
948d788c6d
commit
b7d8d95bf1
1 changed files with 5 additions and 5 deletions
|
@ -24,13 +24,13 @@ _RtlInterlockedPopEntrySList@4:
|
|||
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 @@ _RtlInterlockedPushEntrySList@8:
|
|||
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 @@ _RtlInterlockedFlushSList@4:
|
|||
xor ebx, ebx
|
||||
|
||||
/* Load ListHead into ebp */
|
||||
mov ebp, [esp + 4]
|
||||
mov ebp, [esp + 12]
|
||||
|
||||
/* Load ListHead->Next into eax */
|
||||
mov eax, [ebp]
|
||||
|
|
Loading…
Reference in a new issue