aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-09-16 17:47:02 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-09-16 17:47:02 -0700
commit6ea4379b7185f462d379aee92aafad770603f930 (patch)
tree9a117d5bcfe389d47db02cae49ada3d597f9fb1c
parent6aa0542126e53fe96e6c794d35b7e36cfc925a47 (diff)
downloadlwip-6ea4379b7185f462d379aee92aafad770603f930.tar.gz
lwip-6ea4379b7185f462d379aee92aafad770603f930.tar.xz
lwip-6ea4379b7185f462d379aee92aafad770603f930.zip
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@zytor.com>
-rw-r--r--core/thread/sem_asm.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/thread/sem_asm.S b/core/thread/sem_asm.S
index 2b3014f2..ce67471a 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