diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2018-03-09 11:44:59 +0100 |
---|---|---|
committer | Tobias Klauser <tobias.klauser@gmail.com> | 2018-03-21 15:40:01 +0000 |
commit | 2e84dc2596f5ca655fd5716e1c277a801c868566 (patch) | |
tree | 45a409cfcf4e7a370868c6752a17f114151f00e9 /src/runtime/os_freebsd_noauxv.go | |
parent | 77c3ef6f6fdb53708484e944f6ef37b222e1ae89 (diff) | |
download | go-2e84dc2596f5ca655fd5716e1c277a801c868566.tar.gz go-2e84dc2596f5ca655fd5716e1c277a801c868566.zip |
runtime: parse auxv on freebsd
Decode AT_PAGESZ to determine physPageSize on freebsd/{386,amd64,arm}
and AT_HWCAP for hwcap and hardDiv on freebsd/arm. Also use hwcap to
perform the FP checks in checkgoarm akin to the linux/arm
implementation.
Change-Id: I532810a1581efe66277e4305cb234acdc79ee91e
Reviewed-on: https://go-review.googlesource.com/99780
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/os_freebsd_noauxv.go')
-rw-r--r-- | src/runtime/os_freebsd_noauxv.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/runtime/os_freebsd_noauxv.go b/src/runtime/os_freebsd_noauxv.go new file mode 100644 index 0000000000..01efb9b7c9 --- /dev/null +++ b/src/runtime/os_freebsd_noauxv.go @@ -0,0 +1,11 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build freebsd +// +build !arm + +package runtime + +func archauxv(tag, val uintptr) { +} |