1// Copyright 2022 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_RISCV_RDTIME = 1
9)
10
11func getCntxct() uint32
12
13//go:nosplit
14func (th *vdsoTimehands) getTimecounter() (uint32, bool) {
15	switch th.algo {
16	case _VDSO_TH_ALGO_RISCV_RDTIME:
17		return getCntxct(), true
18	default:
19		return 0, false
20	}
21}
22