[1/7] Preprocessor cleanup
[official-gcc.git] / libgo / go / runtime / os_linux_mipsx.go
bloba2696deea1a8307436792f0a93d4c6375442d8c1
1 // Copyright 2016 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 mips mipsle
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