...

Source file src/runtime/os_openbsd_arm64.go

     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		"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		// TODO: need more entropy to better seed fastrand.
    16		return nanotime()
    17	}
    18	
    19	func sysargs(argc int32, argv **byte) {
    20		// OpenBSD does not have auxv, however we still need to initialise cpu.HWCaps.
    21		// For now specify the bare minimum until we add some form of capabilities
    22		// detection. See issue #31746.
    23		cpu.HWCap = 1<<1 | 1<<0 // ASIMD, FP
    24	}
    25	

View as plain text