Source file src/runtime/vdso_linux_loong64.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  //go:build linux && loong64
     6  
     7  package runtime
     8  
     9  const (
    10  	// vdsoArrayMax is the byte-size of a maximally sized array on this architecture.
    11  	// See cmd/compile/internal/loong64/galign.go arch.MAXWIDTH initialization.
    12  	vdsoArrayMax = 1<<50 - 1
    13  )
    14  
    15  // not currently described in manpages as of May 2022, but will eventually
    16  // appear
    17  // when that happens, see man 7 vdso : loongarch
    18  var vdsoLinuxVersion = vdsoVersionKey{"LINUX_5.10", 0xae78f70}
    19  
    20  var vdsoSymbolKeys = []vdsoSymbolKey{
    21  	{"__vdso_clock_gettime", 0xd35ec75, 0x6e43a318, &vdsoClockgettimeSym},
    22  	{"__vdso_getrandom", 0x25425d, 0x84a559bf, &vdsoGetrandomSym},
    23  }
    24  
    25  var (
    26  	vdsoClockgettimeSym uintptr
    27  	vdsoGetrandomSym    uintptr
    28  )
    29  

View as plain text