[syslinux:lwip] core: thread: return 0 from sem_down() if we didn't have to wait
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Fri Apr 22 20:05:33 PDT 2011
Commit-ID: 10de0b22546489b58ef3588f77be3121a26c0a3e
Gitweb: http://syslinux.zytor.com/commit/10de0b22546489b58ef3588f77be3121a26c0a3e
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 16 Sep 2009 17:47:02 -0700
Committer: Eric W. Biederman <ebiederm at xmission.com>
CommitDate: Tue, 12 Apr 2011 14:40:52 -0700
core: thread: return 0 from sem_down() if we didn't have to wait
Return 0 from sem_down if we passed right through the assembly code.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
core/thread/sem_asm.S | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/core/thread/sem_asm.S b/core/thread/sem_asm.S
index 2b3014f..ce67471 100644
--- a/core/thread/sem_asm.S
+++ b/core/thread/sem_asm.S
@@ -3,6 +3,7 @@
sem_down:
decl (%eax)
js __sem_down_slow
+ xorl %eax, %eax
ret
.size sem_down, .-sem_down
More information about the Syslinux-commits
mailing list