bsd-user:Add ARM AArch64 support and capabilities
authorWarner Losh <imp@bsdimp.com>
Sun, 7 Jul 2024 19:11:23 +0000 (00:41 +0530)
committerWarner Losh <imp@bsdimp.com>
Tue, 23 Jul 2024 16:50:54 +0000 (10:50 -0600)
commit1541d87db24063fcb11b13e6bfb66a193ff9be65
treeb0b133e899f5e86d36638a3cb707aedd543d9474
parent1acce7718bd41a20d3db6323959fedf9c3675ebe
bsd-user:Add ARM AArch64 support and capabilities

Added function to access rval2 by accessing the x1 register.
Defined ARM AArch64 ELF parameters including mmap and dynamic load addresses.
Introduced extensive hardware capability definitions and macros for retrieving hardware capability (hwcap) flags.
Implemented function to retrieve ARM AArch64 hardware capabilities using the `GET_FEATURE_ID` macro.
Added function to retrieve extended ARM AArch64 hardware capability flags.

Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Ajeet Singh <itachis@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Co-authored-by: Kyle Evans <kevans@FreeBSD.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240707191128.10509-4-itachis@FreeBSD.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
bsd-user/aarch64/target_arch.h
bsd-user/aarch64/target_arch_elf.h [new file with mode: 0644]
bsd-user/aarch64/target_arch_vmparam.h