libgo: update to go1.9
[official-gcc.git] / libgo / go / syscall / syscall_linux_mipsx.go
blob1a15218e3ea66bda23e8b111babd55a77a84f6ec
1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build linux
6 // +build mips mipsle mips64 mips64le mips64p32 mips64p32le
8 package syscall
10 import "unsafe"
12 func (r *PtraceRegs) PC() uint64 {
13 return r.Cp0_epc
16 func (r *PtraceRegs) SetPC(pc uint64) {
17 r.Cp0_epc = pc
20 func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
21 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
24 func PtraceSetRegs(pid int, regs *PtraceRegs) (err error) {
25 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
28 func rawVforkSyscall(trap, a1 uintptr) (r1 uintptr, err Errno) {
29 panic("not implemented")