http://netbsd.i2p/gallery/presentations/maya/asiabsdcon-2019-golang-netbsd-arm64.html
= 0 {
err = errnoErr(e1)
}
return
} Implement Syscall3, Syscall6, Syscall9 // func RawSyscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr)
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
MOVD trap+0(FP), R17 // syscall entry
MOVD a1+8(FP), R0
MOVD a2+16(FP), R1
MOVD a3+24(FP), R2
SVC $SYS_syscall
BCC ok
MOVD $-1, R1
MOVD R1, r1+32(FP) // r1
MOVD ZR, r2+40(FP) // r2
MOVD R0, err+48(FP) // err
RET
ok:
MOVD R0, r1+32(FP) //...