[1/7] Preprocessor cleanup
[official-gcc.git] / libgo / go / runtime / os_linux_mips64x.go
blobb7f737fdf8eb6317b6e9b2382d3893cfedfc7343
1 // Copyright 2015 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.
5 // +build linux
6 // +build mips64 mips64le
8 package runtime
10 var randomNumber uint32
12 func archauxv(tag, val uintptr) {
13 switch tag {
14 case _AT_RANDOM:
15 // sysargs filled in startupRandomData, but that
16 // pointer may not be word aligned, so we must treat
17 // it as a byte array.
18 randomNumber = uint32(startupRandomData[4]) | uint32(startupRandomData[5])<<8 |
19 uint32(startupRandomData[6])<<16 | uint32(startupRandomData[7])<<24