...

Source file src/runtime/os_linux_ppc64x.go

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

View as plain text