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