github.com/SandwichDev/go-internals@v0.0.0-20210605002614-12311ac6b2c5/cpu/cpu_ppc64x_aix.go (about) 1 // Copyright 2020 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build ppc64 ppc64le 6 7 package cpu 8 9 const ( 10 // getsystemcfg constants 11 _SC_IMPL = 2 12 _IMPL_POWER9 = 0x20000 13 ) 14 15 func osinit() { 16 impl := getsystemcfg(_SC_IMPL) 17 PPC64.IsPOWER9 = isSet(impl, _IMPL_POWER9) 18 } 19 20 // getsystemcfg is defined in runtime/os2_aix.go 21 func getsystemcfg(label uint) uint