Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: add AT_HWCAP2 support for 32-bit compat

Add support for the ELF auxv entry AT_HWCAP2 when running 32-bit
ELF binaries in compat mode.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

authored by

Ard Biesheuvel and committed by
Catalin Marinas
28964d32 66d6e3b3

+3 -1
+2 -1
arch/arm64/include/asm/hwcap.h
··· 41 41 42 42 #ifdef CONFIG_COMPAT 43 43 #define COMPAT_ELF_HWCAP (compat_elf_hwcap) 44 - extern unsigned int compat_elf_hwcap; 44 + #define COMPAT_ELF_HWCAP2 (compat_elf_hwcap2) 45 + extern unsigned int compat_elf_hwcap, compat_elf_hwcap2; 45 46 #endif 46 47 47 48 extern unsigned long elf_hwcap;
+1
arch/arm64/kernel/setup.c
··· 69 69 COMPAT_HWCAP_VFPv3|COMPAT_HWCAP_VFPv4|\ 70 70 COMPAT_HWCAP_NEON|COMPAT_HWCAP_IDIV) 71 71 unsigned int compat_elf_hwcap __read_mostly = COMPAT_ELF_HWCAP_DEFAULT; 72 + unsigned int compat_elf_hwcap2 __read_mostly; 72 73 #endif 73 74 74 75 static const char *cpu_name;