]> Cypherpunks repositories - gostls13.git/commit
runtime: fix AT_HWCAP auxv parsing on freebsd
authorYuval Pavel Zholkover <paulzhol@gmail.com>
Fri, 23 Mar 2018 14:53:26 +0000 (17:53 +0300)
committerIan Lance Taylor <iant@golang.org>
Fri, 23 Mar 2018 19:51:25 +0000 (19:51 +0000)
commit6f47fa2d6c6b2d4fdfc5b3a98fa8e3cd8469ca16
tree8c1dea1161286821c570dc77d7156b35ea4ddfe6
parent41402b59bd7401bf0b4ff3043dfe3d3fa712e05c
runtime: fix AT_HWCAP auxv parsing on freebsd

AT_HWCAP is not available on FreeBSD-11.1-RELEASE or earlier and the wrong const was used.
Use the correct value, and initialize hwcap with ^uint32(0) inorder not to fail the VFP tests.

Fixes #24507.

Change-Id: I5c3eed57bb53bf992b7de0eec88ea959806306b9
Reviewed-on: https://go-review.googlesource.com/102355
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/os_freebsd.go
src/runtime/os_freebsd_arm.go