Source file src/runtime/vdso_freebsd_riscv64.go

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

View as plain text