Source file
src/runtime/os_linux_mips64x.go
1
2
3
4
5
6
7 package runtime
8
9 import "internal/cpu"
10
11 func archauxv(tag, val uintptr) {
12 switch tag {
13 case _AT_HWCAP:
14 cpu.HWCap = uint(val)
15 }
16 }
17
18 func osArchInit() {}
19
20
21 func cputicks() int64 {
22
23
24 return nanotime()
25 }
26
27 const (
28 _SS_DISABLE = 2
29 _NSIG = 129
30 _SI_USER = 0
31 _SIG_BLOCK = 1
32 _SIG_UNBLOCK = 2
33 _SIG_SETMASK = 3
34 )
35
36 type sigset [2]uint64
37
38 var sigset_all = sigset{^uint64(0), ^uint64(0)}
39
40
41
42 func sigaddset(mask *sigset, i int) {
43 (*mask)[(i-1)/64] |= 1 << ((uint32(i) - 1) & 63)
44 }
45
46 func sigdelset(mask *sigset, i int) {
47 (*mask)[(i-1)/64] &^= 1 << ((uint32(i) - 1) & 63)
48 }
49
50
51 func sigfillset(mask *[2]uint64) {
52 (*mask)[0], (*mask)[1] = ^uint64(0), ^uint64(0)
53 }
54
View as plain text