runtime: add nanotime for Plan 9
R=paulzhol, rsc, dave, rminnich
CC=golang-dev
https://golang.org/cl/5327063
diff --git a/src/pkg/runtime/plan9/386/sys.s b/src/pkg/runtime/plan9/386/sys.s
index a15362f..97be276 100644
--- a/src/pkg/runtime/plan9/386/sys.s
+++ b/src/pkg/runtime/plan9/386/sys.s
@@ -14,16 +14,14 @@
INT $64
RET
-// TODO(ality): remove use of deprecated system calls
-
-TEXT runtime·read(SB),7,$0
- MOVL $15, AX
- INT $64
+TEXT runtime·pread(SB),7,$0
+ MOVL $50, AX
+ INT $64
RET
-TEXT runtime·write(SB),7,$0
- MOVL $20, AX
- INT $64
+TEXT runtime·pwrite(SB),7,$0
+ MOVL $51, AX
+ INT $64
RET
TEXT runtime·close(SB),7,$0
@@ -90,9 +88,9 @@
MOVL 0(BX), BX
// more paranoia; check that stack splitting code works
- PUSHAL
+ PUSHL SI
CALL runtime·emptyfunc(SB)
- POPAL
+ POPL SI
CALL SI // fn()
CALL runtime·exit(SB)