aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_linux_mips64x.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-09-27 13:42:28 -0700
committerIan Lance Taylor <iant@golang.org>2016-09-27 21:33:44 +0000
commitfdc167164ecde259bd356cc8e7ae5ccb0903469c (patch)
tree0b4eee66e1530b4f35966e30ac1ee0a0b29e5148 /src/runtime/os_linux_mips64x.go
parente13df02e5fbf2c0cd8811b826a8c8567efa882dd (diff)
downloadgo-fdc167164ecde259bd356cc8e7ae5ccb0903469c.tar.gz
go-fdc167164ecde259bd356cc8e7ae5ccb0903469c.zip
runtime: remove sigmask type, use sigset instead
The OS-independent sigmask type was not pulling its weight. Replace it with the OS-dependent sigset type. This requires adding an OS-specific sigaddset function, but permits removing the OS-specific sigmaskToSigset function. Change-Id: I43307b512b0264ec291baadaea902f05ce212305 Reviewed-on: https://go-review.googlesource.com/29950 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/os_linux_mips64x.go')
-rw-r--r--src/runtime/os_linux_mips64x.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/runtime/os_linux_mips64x.go b/src/runtime/os_linux_mips64x.go
index 8fbeb3dc8d..1c690fed0a 100644
--- a/src/runtime/os_linux_mips64x.go
+++ b/src/runtime/os_linux_mips64x.go
@@ -47,6 +47,8 @@ type rlimit struct {
var sigset_all = sigset{^uint64(0), ^uint64(0)}
+//go:nosplit
+//go:nowritebarrierrec
func sigaddset(mask *sigset, i int) {
(*mask)[(i-1)/64] |= 1 << ((uint32(i) - 1) & 63)
}
@@ -58,11 +60,3 @@ func sigdelset(mask *sigset, i int) {
func sigfillset(mask *[2]uint64) {
(*mask)[0], (*mask)[1] = ^uint64(0), ^uint64(0)
}
-
-//go:nosplit
-//go:nowritebarrierrec
-func sigmaskToSigset(m sigmask) sigset {
- var set sigset
- set[0] = uint64(m[0]) | uint64(m[1])<<32
- return set
-}