02df7388f1
This is a bit disappointing. I'd not implemented this in the past because it wasn't available on all platforms, and -- although the riscv64 implementation was just a cool optimization -- I thought that the /sys stuff was actually portable, until I ran it on arm64 hardware. So here we have getauxval() for riscv64, /sys for x86-64, and our best guess based on ctr_el0 for arm64. Bug: http://b/294034962 Test: ran tests on the host, an arm64 device, and riscv64 host and qemu Change-Id: I420b69b976d30668d4d2ac548c4229e2a4eafb20 |
||
---|---|---|
.. | ||
arch-arm | ||
arch-arm64 | ||
arch-common/bionic | ||
arch-riscv64 | ||
arch-x86 | ||
arch-x86_64 | ||
async_safe | ||
b64/include/bionic | ||
bionic | ||
dns | ||
execinfo/include | ||
fts/include | ||
include | ||
kernel | ||
malloc_debug | ||
malloc_hooks | ||
platform | ||
private | ||
seccomp | ||
stdio | ||
system_properties | ||
tools | ||
tzcode | ||
upstream-freebsd | ||
upstream-netbsd | ||
upstream-openbsd | ||
versioner-dependencies | ||
Android.bp | ||
BUILD | ||
fs_config_generator.py | ||
libc.map.txt | ||
libstdc++.map.txt | ||
MODULE_LICENSE_BSD | ||
NOTICE | ||
SECCOMP_ALLOWLIST_APP.TXT | ||
SECCOMP_ALLOWLIST_COMMON.TXT | ||
SECCOMP_ALLOWLIST_SYSTEM.TXT | ||
SECCOMP_BLOCKLIST_APP.TXT | ||
SECCOMP_BLOCKLIST_COMMON.TXT | ||
SECCOMP_PRIORITY.TXT | ||
SYSCALLS.TXT | ||
version_script.txt |