Commit 8405cd30 authored by Tobias Klauser's avatar Tobias Klauser Committed by Tobias Klauser

internal/syscall/unix: add support for linux/riscv64

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: default avatarIan Lance Taylor <iant@golang.org>
parent 24e9c533
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build arm64 // +build arm64 riscv64
package unix package unix
......
...@@ -2,15 +2,15 @@ ...@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build linux,arm64 // +build linux
// +build arm64 riscv64
package unix package unix
// Linux getrandom system call number. // Linux getrandom system call number.
// See GetRandom in getrandom_linux.go. // See GetRandom in getrandom_linux.go.
// //
// This file is named "generic" because at a certain point Linux // This file is named "generic" because at a certain point Linux started
// started standardizing on system call numbers across // standardizing on system call numbers across architectures. So far this means
// architectures. So far this means only arm64 uses the standard // only arm64 and riscv64 use the standard numbers.
// numbers.
const randomTrap uintptr = 278 const randomTrap uintptr = 278
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment