mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
2/3 Added vendor/ dir to lock down dependent pkg versions. The author of git.schwanenlied.me/yawning/{chacha20,newhope,kyber}.git has copied their repos to gitlab.com/yawning/ but some imports of chacha20 from newhope still inconsistently refer to git.schwanenlied.me/, breaking build. Licenses for chacha20 also changed from CC0 to AGPL, which may or may not be an issue. Until the two aforementioned issues are resolved, locking to last-good versions is probably the best way forward for now. To build with vendored deps, use make VENDOR=1 clean all 3/3 Moved body of CI push script into bacillus/
42 lines
1.2 KiB
Go
42 lines
1.2 KiB
Go
// Code generated by linux/mkall.go generatePtracePair(arm, arm64). DO NOT EDIT.
|
|
|
|
// +build linux
|
|
// +build arm arm64
|
|
|
|
package unix
|
|
|
|
import "unsafe"
|
|
|
|
// PtraceRegsArm is the registers used by arm binaries.
|
|
type PtraceRegsArm struct {
|
|
Uregs [18]uint32
|
|
}
|
|
|
|
// PtraceGetRegsArm fetches the registers used by arm binaries.
|
|
func PtraceGetRegsArm(pid int, regsout *PtraceRegsArm) error {
|
|
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
}
|
|
|
|
// PtraceSetRegsArm sets the registers used by arm binaries.
|
|
func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error {
|
|
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
}
|
|
|
|
// PtraceRegsArm64 is the registers used by arm64 binaries.
|
|
type PtraceRegsArm64 struct {
|
|
Regs [31]uint64
|
|
Sp uint64
|
|
Pc uint64
|
|
Pstate uint64
|
|
}
|
|
|
|
// PtraceGetRegsArm64 fetches the registers used by arm64 binaries.
|
|
func PtraceGetRegsArm64(pid int, regsout *PtraceRegsArm64) error {
|
|
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
}
|
|
|
|
// PtraceSetRegsArm64 sets the registers used by arm64 binaries.
|
|
func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error {
|
|
return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
|
}
|