freebsd-nq/sys/arm64
Mitchell Horne 752eb6a995 arm64: export new HWCAP features
Expose some of the new HWCAP features added in r65304. This includes the
addition of elf_hwcap2 into the sysvec, and a separate function to parse
for those features.

This only exposes features which require no further configuration, e.g.
indicating the presence of certain instructions. Larger features (SVE)
will not be advertised until we actually support them. The exact list of
features/extensions this patch exposes is:
  - ARMv8.0-DGH
  - ARMv8.0-SB
  - ARMv8.2-BF16
  - ARMv8.2-DCCVADP
  - ARMv8.2-I8MM
  - ARMv8.4-LRCPC
  - ARMv8.5-CondM
  - ARMv8.5-FRINT
  - ARMv8.5-RNG
  - PSTATE.SSBS

While here, annotate elf_hwcap and elf_hwcap2 as __read_frequently, and
move the declarations to the machine/md_var.h header.

Submitted by:	mikael@ (D22314 portion)
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D26031
Differential Revision:	https://reviews.freebsd.org/D22314
2020-09-08 15:36:38 +00:00
..
acpica arm64/acpi: Give the real PA limit to ACPI 2020-08-26 02:12:15 +00:00
arm64 arm64: export new HWCAP features 2020-09-08 15:36:38 +00:00
broadcom arm64: clean up empty lines in .c and .h files 2020-09-01 21:18:06 +00:00
cavium arm64: clean up empty lines in .c and .h files 2020-09-01 21:18:06 +00:00
cloudabi32 Use uintptr_t instead of register_t * for the stack base. 2019-12-03 23:17:54 +00:00
cloudabi64 Use uintptr_t instead of register_t * for the stack base. 2019-12-03 23:17:54 +00:00
conf Add a GPIO driver for the Arm pl061 controller 2020-09-08 11:35:35 +00:00
coresight arm64: clean up empty lines in .c and .h files 2020-09-01 21:18:06 +00:00
freescale/imx arm64: clean up empty lines in .c and .h files 2020-09-01 21:18:06 +00:00
include arm64: export new HWCAP features 2020-09-08 15:36:38 +00:00
intel
linux arm64: clean up empty lines in .c and .h files 2020-09-01 21:18:06 +00:00
qoriq arm64: clean up empty lines in .c and .h files 2020-09-01 21:18:06 +00:00
qualcomm
rockchip arm64: clean up empty lines in .c and .h files 2020-09-01 21:18:06 +00:00