1
0
mirror of https://github.com/golang/go synced 2024-11-27 05:21:22 -07:00

runtime: fix return values for open/read/write/close on openbsd/arm

Change-Id: I5b057d16eed1b364e608ff0fd74de323da6492bc
Reviewed-on: https://go-review.googlesource.com/7679
Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
Joel Sing 2015-03-17 22:55:40 +11:00
parent 98485f5ad4
commit 4f35ad6088

View File

@ -36,6 +36,7 @@ TEXT runtime·open(SB),NOSPLIT,$-4
MOVW mode+8(FP), R2 // arg 3 - mode
MOVW $5, R12 // sys_open
SWI $0
MOVW.CS $-1, R0
MOVW R0, ret+12(FP)
RET
@ -43,6 +44,7 @@ TEXT runtime·close(SB),NOSPLIT,$-4
MOVW path+0(FP), R0 // arg 1 - path
MOVW $6, R12 // sys_close
SWI $0
MOVW.CS $-1, R0
MOVW R0, ret+4(FP)
RET
@ -52,6 +54,7 @@ TEXT runtime·read(SB),NOSPLIT,$-4
MOVW nbyte+8(FP), R2 // arg 3 - nbyte
MOVW $3, R12 // sys_read
SWI $0
MOVW.CS $-1, R0
MOVW R0, ret+12(FP)
RET
@ -61,6 +64,7 @@ TEXT runtime·write(SB),NOSPLIT,$-4
MOVW nbyte+8(FP), R2 // arg 3 - nbyte
MOVW $4, R12 // sys_write
SWI $0
MOVW.CS $-1, R0
MOVW R0, ret+12(FP)
RET