diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-09-23 21:00:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2016-09-23 21:00:43 +0000 |
commit | 6465652c8768dae2567f693eed04fb6a1b8ce517 (patch) | |
tree | 8e8fb077e2d35a9c4622b709d1b135cdcf941550 | |
parent | 4a8d4422b01ffec7a3481083b80cfde910016777 (diff) | |
download | gcc-6465652c8768dae2567f693eed04fb6a1b8ce517.zip gcc-6465652c8768dae2567f693eed04fb6a1b8ce517.tar.gz gcc-6465652c8768dae2567f693eed04fb6a1b8ce517.tar.bz2 |
internal/syscall/unix: add getrandom syscall for MIPS and SPARC
Reviewed-on: https://go-review.googlesource.com/29678
From-SVN: r240457
5 files changed, 35 insertions, 2 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE index a3457cf..3fca47a 100644 --- a/gcc/go/gofrontend/MERGE +++ b/gcc/go/gofrontend/MERGE @@ -1,4 +1,4 @@ -57bf3f21005c4508003f65207282c057e3526ec0 +28b79f1d5a3a8924329128999a21d0693e08a603 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. diff --git a/libgo/go/internal/syscall/unix/getrandom_linux_mips64x.go b/libgo/go/internal/syscall/unix/getrandom_linux_mips64x.go index b328b8f..02fd1a0 100644 --- a/libgo/go/internal/syscall/unix/getrandom_linux_mips64x.go +++ b/libgo/go/internal/syscall/unix/getrandom_linux_mips64x.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build mips64 mips64le +// +build mips64 mips64le mipsn64 mipso64 package unix diff --git a/libgo/go/internal/syscall/unix/getrandom_linux_mipsn32.go b/libgo/go/internal/syscall/unix/getrandom_linux_mipsn32.go new file mode 100644 index 0000000..8f481fa5 --- /dev/null +++ b/libgo/go/internal/syscall/unix/getrandom_linux_mipsn32.go @@ -0,0 +1,11 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build mipsn32 + +package unix + +// Linux getrandom system call number. +// See GetRandom in getrandom_linux.go. +const randomTrap uintptr = 6317 diff --git a/libgo/go/internal/syscall/unix/getrandom_linux_mipso32.go b/libgo/go/internal/syscall/unix/getrandom_linux_mipso32.go new file mode 100644 index 0000000..612d00b --- /dev/null +++ b/libgo/go/internal/syscall/unix/getrandom_linux_mipso32.go @@ -0,0 +1,11 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build mipso32 + +package unix + +// Linux getrandom system call number. +// See GetRandom in getrandom_linux.go. +const randomTrap uintptr = 4353 diff --git a/libgo/go/internal/syscall/unix/getrandom_linux_sparc.go b/libgo/go/internal/syscall/unix/getrandom_linux_sparc.go new file mode 100644 index 0000000..4874ec1 --- /dev/null +++ b/libgo/go/internal/syscall/unix/getrandom_linux_sparc.go @@ -0,0 +1,11 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build sparc sparc64 + +package unix + +// Linux getrandom system call number. +// See GetRandom in getrandom_linux.go. +const randomTrap uintptr = 347 |