Source file src/runtime/vdso_linux_mips64x.go
Documentation: runtime
1 // Copyright 2019 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 && (mips64 || mips64le) 6 // +build linux 7 // +build mips64 mips64le 8 9 package runtime 10 11 const ( 12 // vdsoArrayMax is the byte-size of a maximally sized array on this architecture. 13 // See cmd/compile/internal/mips64/galign.go arch.MAXWIDTH initialization. 14 vdsoArrayMax = 1<<50 - 1 15 ) 16 17 // see man 7 vdso : mips 18 var vdsoLinuxVersion = vdsoVersionKey{"LINUX_2.6", 0x3ae75f6} 19 20 // The symbol name is not __kernel_clock_gettime as suggested by the manpage; 21 // according to Linux source code it should be __vdso_clock_gettime instead. 22 var vdsoSymbolKeys = []vdsoSymbolKey{ 23 {"__vdso_clock_gettime", 0xd35ec75, 0x6e43a318, &vdsoClockgettimeSym}, 24 } 25 26 // initialize to fall back to syscall 27 var ( 28 vdsoClockgettimeSym uintptr = 0 29 ) 30