summaryrefslogtreecommitdiff
path: root/libgo/go/syscall/syscall_linux_riscv64.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/syscall/syscall_linux_riscv64.go')
-rw-r--r--libgo/go/syscall/syscall_linux_riscv64.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/libgo/go/syscall/syscall_linux_riscv64.go b/libgo/go/syscall/syscall_linux_riscv64.go
new file mode 100644
index 00000000000..e9aab94e3a1
--- /dev/null
+++ b/libgo/go/syscall/syscall_linux_riscv64.go
@@ -0,0 +1,23 @@
+// Copyright 2019 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.
+
+package syscall
+
+import "unsafe"
+
+func (r *PtraceRegs) PC() uint64 { return r.Pc }
+
+func (r *PtraceRegs) SetPC(pc uint64) { r.Pc = pc }
+
+func (iov *Iovec) SetLen(length int) {
+ iov.Len = uint64(length)
+}
+
+func (msghdr *Msghdr) SetControllen(length int) {
+ msghdr.Controllen = uint64(length)
+}
+
+func (cmsg *Cmsghdr) SetLen(length int) {
+ cmsg.Len = uint64(length)
+}