1 // Copyright 2016 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 //go:build linux && (ppc64 || ppc64le) 6 7 package runtime 8 9 import "internal/cpu" 10 11 func archauxv(tag, val uintptr) { 12 switch tag { 13 case _AT_HWCAP: 14 // ppc64x doesn't have a 'cpuid' instruction 15 // equivalent and relies on HWCAP/HWCAP2 bits for 16 // hardware capabilities. 17 cpu.HWCap = uint(val) 18 case _AT_HWCAP2: 19 cpu.HWCap2 = uint(val) 20 } 21 } 22 23 func osArchInit() {} 24