github.com/x04/go/src@v0.0.0-20200202162449-3d481ceb3525/runtime/os_openbsd_arm64.go (about) 1 // Copyright 2019 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 package runtime 6 7 import ( 8 "github.com/x04/go/src/internal/cpu" 9 ) 10 11 //go:nosplit 12 func cputicks() int64 { 13 // Currently cputicks() is used in blocking profiler and to seed runtime·fastrand(). 14 // runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler. 15 return nanotime() 16 } 17 18 func sysargs(argc int32, argv **byte) { 19 // OpenBSD does not have auxv, however we still need to initialise cpu.HWCaps. 20 // For now specify the bare minimum until we add some form of capabilities 21 // detection. See issue #31746. 22 cpu.HWCap = 1<<1 | 1<<0 // ASIMD, FP 23 }