github.com/primecitizens/pcz/std@v0.2.1/core/cpu/cpu_arm64_other.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 // 4 // Copyright 2020 The Go Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style 6 // license that can be found in the LICENSE file. 7 8 //go:build arm64 && !linux && !freebsd && !android && !darwin && !ios 9 10 package cpu 11 12 func osInit() *ARM64Features { 13 // Other operating systems do not support reading HWCap from auxiliary vector, 14 // reading privileged aarch64 system registers or sysctl in user space to detect 15 // CPU features at runtime. 16 return &ARM64 17 }