From 272fd42b90f60e95e79c644d51623c0565e3a08a Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Thu, 23 Jul 2015 11:28:42 +0000 Subject: [PATCH] kolibri-acpi: fix mistype in futex_wake git-svn-id: svn://kolibrios.org@5605 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/branches/Kolibri-acpi/core/sync.inc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/kernel/branches/Kolibri-acpi/core/sync.inc b/kernel/branches/Kolibri-acpi/core/sync.inc index 9d2ec259b3..420a4a5c0e 100644 --- a/kernel/branches/Kolibri-acpi/core/sync.inc +++ b/kernel/branches/Kolibri-acpi/core/sync.inc @@ -231,9 +231,9 @@ align 4 align 4 ;ecx futex handle -;esi current process -;edi futex object -;edx threads count +;edx numder of threads +;edi current process +;ebp futex object .futex_wake: xor ecx, ecx @@ -241,11 +241,11 @@ align 4 pushfd cli - lea ebx, [edi+FUTEX.wait_list] + lea ebx, [ebp+FUTEX.wait_list] mov esi, [ebx+LHEAD.next] -@@: +.wake: cmp esi, ebx - je @F + je .done mov eax, [esi+MUTEX_WAITER.task] mov [eax+TASKDATA.state], 0 @@ -253,8 +253,8 @@ align 4 mov esi, [esi+MUTEX_WAITER.list.next] inc ecx cmp ecx, edx - jb @B -@@: + jb .wake +.done: popfd mov [esp+SYSCALL_STACK._eax], ecx ret