Source file src/runtime/vdso_freebsd_arm.go
1 // Copyright 2018 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 const ( 8 _VDSO_TH_ALGO_ARM_GENTIM = 1 9 ) 10 11 func getCntxct(physical bool) uint32 12 13 //go:nosplit 14 func (th *vdsoTimehands) getTimecounter() (uint32, bool) { 15 switch th.algo { 16 case _VDSO_TH_ALGO_ARM_GENTIM: 17 return getCntxct(th.physical != 0), true 18 default: 19 return 0, false 20 } 21 } 22