Black Lives Matter. Support the Equal Justice Initiative.

Source file src/runtime/os_linux_ppc64x.go

Documentation: runtime

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

View as plain text