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
5package runtime
6
7const (
8	_VDSO_TH_ALGO_ARM_GENTIM = 1
9)
10
11func getCntxct(physical bool) uint32
12
13//go:nosplit
14func (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