From c33c39a4210e5a98405573be530dc1f1e16081ac Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Tue, 30 Aug 2011 14:03:36 +0000 Subject: [PATCH] fix mutex_unlock git-svn-id: svn://kolibrios.org@2137 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/sched.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/core/sched.inc b/kernel/trunk/core/sched.inc index b95466c966..4548029a4f 100644 --- a/kernel/trunk/core/sched.inc +++ b/kernel/trunk/core/sched.inc @@ -303,8 +303,9 @@ mutex_unlock: pushfd cli - lea eax, [ecx+MUTEX.next] - cmp eax, [ecx+MUTEX.next] + lea edx, [ecx+MUTEX.next] + mov eax, [edx] + cmp eax, edx mov [ecx+MUTEX.count], 1 je @F