ref: 278b89b6962d2d81d280e4578a3481943a6ee79b
parent: fe464d312c57a23d985542f317d322a0115dd8a0
author: Ori Bernstein <ori@eigenstate.org>
date: Fri May 6 12:32:57 EDT 2016
Update libthread on 9front.
--- a/lib/std/syswrap+plan9.myr
+++ b/lib/std/syswrap+plan9.myr
@@ -206,9 +206,10 @@
}
const nanosleep = {nsecs
- if sys.sleep(nsecs/1_000_000) < 0
+ if sys.sleep((nsecs/1_000_000) castto(uint32)) < 0
-> lasterr()
;;
+ -> 0
}
/* memory stuff */
--- a/lib/thread/atomic-impl+plan9-x64.s
+++ b/lib/thread/atomic-impl+plan9-x64.s
@@ -31,19 +31,6 @@
MOVQ SI, AX
RET
-TEXT thread$xsub32+0(SB),1,$0
- LOCK; XSUBL SI, (DI)
- MOVL SI, AX
- RET
-TEXT thread$xsub64+0(SB),1,$0
- LOCK; XSUBQ SI, (DI)
- MOVQ SI, AX
- RET
-TEXT thread$xsubp+0(SB),1,$0
- LOCK; XSUBQ SI, (DI)
- MOVQ SI, AX
- RET
-
TEXT thread$xcas32+0(SB),1,$0
MOVL SI, AX
LOCK; CMPXCHGL DX, (DI)