aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/auxv_none.go
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2018-03-27 13:33:32 +0000
committerTobias Klauser <tobias.klauser@gmail.com>2018-03-27 15:21:51 +0000
commit4ff4e5072590ca885f807d1619106d4d8a52217c (patch)
treedbfaf92d310c184568389e0f1783085e57b0d6c0 /src/runtime/auxv_none.go
parenta44c72823ca4a0abd595a5ab15225811e979b353 (diff)
downloadgo-4ff4e5072590ca885f807d1619106d4d8a52217c.tar.gz
go-4ff4e5072590ca885f807d1619106d4d8a52217c.zip
runtime: parse auxv for page size on netbsd
Decode AT_PAGESZ to determine physPageSize on netbsd. Also rename vdso_none.go to auxv_none.go which matches its purpose more closely. Akin to CL 99780 which did the same for freebsd. Change-Id: Iea4322f861ff0f3515e9051585dbb442f024326b Reviewed-on: https://go-review.googlesource.com/102677 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/auxv_none.go')
-rw-r--r--src/runtime/auxv_none.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/runtime/auxv_none.go b/src/runtime/auxv_none.go
new file mode 100644
index 0000000000..96fcbdc2fe
--- /dev/null
+++ b/src/runtime/auxv_none.go
@@ -0,0 +1,13 @@
+// Copyright 2014 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 !linux
+// +build !darwin
+// +build !freebsd
+// +build !netbsd
+
+package runtime
+
+func sysargs(argc int32, argv **byte) {
+}