]> Cypherpunks repositories - gostls13.git/commitdiff
internal/syscall/unix: add support for linux/riscv64
authorTobias Klauser <tklauser@distanz.ch>
Fri, 1 Nov 2019 12:49:20 +0000 (13:49 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Fri, 1 Nov 2019 14:19:56 +0000 (14:19 +0000)
Based on the riscv-go port.

Updates #27532

Change-Id: I3a4d86783fbd625e3ade16d08f87d66e4502f3f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/204660
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/syscall/unix/at_sysnum_fstatat_linux.go
src/internal/syscall/unix/getrandom_linux_generic.go

index 580e7997f8d1929fad710670191edf15307c8376..31fe6a5a7b56e7c4e322e7cf576aefced51df679 100644 (file)
@@ -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 arm64
+// +build arm64 riscv64
 
 package unix
 
index f8490ce97857c7ff450c0c4b585ab5ce0242170f..e69bf6b675ed5cf57ad53acc0348ac4bcf05ae70 100644 (file)
@@ -2,15 +2,15 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build linux,arm64
+// +build linux
+// +build arm64 riscv64
 
 package unix
 
 // Linux getrandom system call number.
 // See GetRandom in getrandom_linux.go.
 //
-// This file is named "generic" because at a certain point Linux
-// started standardizing on system call numbers across
-// architectures. So far this means only arm64 uses the standard
-// numbers.
+// This file is named "generic" because at a certain point Linux started
+// standardizing on system call numbers across architectures. So far this means
+// only arm64 and riscv64 use the standard numbers.
 const randomTrap uintptr = 278