diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2018-06-13 15:40:50 +0200 |
|---|---|---|
| committer | Tobias Klauser <tobias.klauser@gmail.com> | 2018-06-13 14:55:01 +0000 |
| commit | a2f72cc80d3c8cbda793959c3186c76e004532af (patch) | |
| tree | 253dff9488aa23152869d42fd6bc786bcb3da026 /src/syscall/mkall.sh | |
| parent | 72ce047a6ceae5490bb5e7d7cfb635463cdc6ea2 (diff) | |
| download | go-a2f72cc80d3c8cbda793959c3186c76e004532af.tar.xz | |
syscall: support Linux syscalls without error return on mipsx/mips64x
Like on other architectures, use rawSyscallNoError for Linux syscalls
that don't return an error and convert all applicable occurences of
RawSyscall to use it instead.
This was missed in CL 84485 because mkall.sh doesn't support
mipsx/mips64x, so add the corresponding entries as well.
Updates #22924
Change-Id: I762cbee0827140b9890c4a10830e0b4cd33de92f
Reviewed-on: https://go-review.googlesource.com/118655
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/syscall/mkall.sh')
| -rwxr-xr-x | src/syscall/mkall.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/syscall/mkall.sh b/src/syscall/mkall.sh index cd0783e876..b381b93161 100755 --- a/src/syscall/mkall.sh +++ b/src/syscall/mkall.sh @@ -189,6 +189,36 @@ linux_arm64) # API consistent between platforms. mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" ;; +linux_mips) + GOOSARCH_in=syscall_linux_mipsx.go + unistd_h=/usr/include/asm/unistd.h + mksyscall="./mksyscall.pl -b32 -arm" + mkerrors="$mkerrors" + mksysnum="./mksysnum_linux.pl $unistd_h" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +linux_mipsle) + GOOSARCH_in=syscall_linux_mipsx.go + unistd_h=/usr/include/asm/unistd.h + mksyscall="./mksyscall.pl -l32 -arm" + mkerrors="$mkerrors" + mksysnum="./mksysnum_linux.pl $unistd_h" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +linux_mips64) + GOOSARCH_in=syscall_linux_mips64x.go + unistd_h=/usr/include/asm/unistd.h + mkerrors="$mkerrors -m64" + mksysnum="./mksysnum_linux.pl $unistd_h" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; +linux_mips64le) + GOOSARCH_in=syscall_linux_mips64x.go + unistd_h=/usr/include/asm/unistd.h + mkerrors="$mkerrors -m64" + mksysnum="./mksysnum_linux.pl $unistd_h" + mktypes="GOARCH=$GOARCH go tool cgo -godefs" + ;; linux_ppc64) GOOSARCH_in=syscall_linux_ppc64x.go unistd_h=/usr/include/asm/unistd.h |
