forked from KolibriOS/kolibrios
kolibri-acpi: fix mistype in futex_wake
git-svn-id: svn://kolibrios.org@5605 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
9b3677daa9
commit
272fd42b90
@ -231,9 +231,9 @@ align 4
|
|||||||
|
|
||||||
align 4
|
align 4
|
||||||
;ecx futex handle
|
;ecx futex handle
|
||||||
;esi current process
|
;edx numder of threads
|
||||||
;edi futex object
|
;edi current process
|
||||||
;edx threads count
|
;ebp futex object
|
||||||
.futex_wake:
|
.futex_wake:
|
||||||
|
|
||||||
xor ecx, ecx
|
xor ecx, ecx
|
||||||
@ -241,11 +241,11 @@ align 4
|
|||||||
pushfd
|
pushfd
|
||||||
cli
|
cli
|
||||||
|
|
||||||
lea ebx, [edi+FUTEX.wait_list]
|
lea ebx, [ebp+FUTEX.wait_list]
|
||||||
mov esi, [ebx+LHEAD.next]
|
mov esi, [ebx+LHEAD.next]
|
||||||
@@:
|
.wake:
|
||||||
cmp esi, ebx
|
cmp esi, ebx
|
||||||
je @F
|
je .done
|
||||||
|
|
||||||
mov eax, [esi+MUTEX_WAITER.task]
|
mov eax, [esi+MUTEX_WAITER.task]
|
||||||
mov [eax+TASKDATA.state], 0
|
mov [eax+TASKDATA.state], 0
|
||||||
@ -253,8 +253,8 @@ align 4
|
|||||||
mov esi, [esi+MUTEX_WAITER.list.next]
|
mov esi, [esi+MUTEX_WAITER.list.next]
|
||||||
inc ecx
|
inc ecx
|
||||||
cmp ecx, edx
|
cmp ecx, edx
|
||||||
jb @B
|
jb .wake
|
||||||
@@:
|
.done:
|
||||||
popfd
|
popfd
|
||||||
mov [esp+SYSCALL_STACK._eax], ecx
|
mov [esp+SYSCALL_STACK._eax], ecx
|
||||||
ret
|
ret
|
||||||
|
Loading…
Reference in New Issue
Block a user