From 5a8ea165926cb0737ab03bc48c18dc5198ab5305 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 2 Jan 2020 15:05:27 -0800 Subject: libgo: update to Go1.14beta1 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/214297 --- libgo/go/syscall/syscall_linux_riscv64.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 libgo/go/syscall/syscall_linux_riscv64.go (limited to 'libgo/go/syscall/syscall_linux_riscv64.go') diff --git a/libgo/go/syscall/syscall_linux_riscv64.go b/libgo/go/syscall/syscall_linux_riscv64.go new file mode 100644 index 0000000..e9aab94 --- /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) +} -- cgit v1.1