summaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-08-07 08:13:55 +0000
committerLibravatar GitHub <noreply@github.com>2023-08-07 08:13:55 +0000
commit0242f03d36a519a90dcaa905e5d2e272f008512b (patch)
tree208e9c294e85b5ce32e120fabdd400925abb6d00 /vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
parent[chore]: Bump golang.org/x/image from 0.9.0 to 0.11.0 (#2074) (diff)
downloadgotosocial-0242f03d36a519a90dcaa905e5d2e272f008512b.tar.xz
[chore]: Bump golang.org/x/crypto from 0.11.0 to 0.12.0 (#2077)
Diffstat (limited to 'vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go')
-rw-r--r--vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
index 35851ef70..5e6ceee12 100644
--- a/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
+++ b/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
@@ -32,7 +32,7 @@ func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err
if timeout != nil {
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
}
- return Pselect(nfd, r, w, e, ts, nil)
+ return pselect6(nfd, r, w, e, ts, nil)
}
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
@@ -177,3 +177,14 @@ func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error
}
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
}
+
+//sys riscvHWProbe(pairs []RISCVHWProbePairs, cpuCount uintptr, cpus *CPUSet, flags uint) (err error)
+
+func RISCVHWProbe(pairs []RISCVHWProbePairs, set *CPUSet, flags uint) (err error) {
+ var setSize uintptr
+
+ if set != nil {
+ setSize = uintptr(unsafe.Sizeof(*set))
+ }
+ return riscvHWProbe(pairs, setSize, set, flags)
+}