...
Source file
src/internal/cpu/cpu_ppc64x_linux.go
1
2
3
4
5
6
7 package cpu
8
9
10
11
12 var HWCap uint
13 var HWCap2 uint
14
15
16 const (
17
18 hwcap2_ARCH_2_07 = 0x80000000
19 hwcap2_ARCH_3_00 = 0x00800000
20 hwcap2_ARCH_3_1 = 0x00040000
21
22
23 hwcap2_DARN = 0x00200000
24 hwcap2_SCV = 0x00100000
25 )
26
27 func osinit() {
28 PPC64.IsPOWER8 = isSet(HWCap2, hwcap2_ARCH_2_07)
29 PPC64.IsPOWER9 = isSet(HWCap2, hwcap2_ARCH_3_00)
30 PPC64.IsPOWER10 = isSet(HWCap2, hwcap2_ARCH_3_1)
31 PPC64.HasDARN = isSet(HWCap2, hwcap2_DARN)
32 PPC64.HasSCV = isSet(HWCap2, hwcap2_SCV)
33 }
34
View as plain text