arm64: add AT_HWCAP2 support for 32-bit compat
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 3 Mar 2014 07:34:45 +0000 (07:34 +0000)
committerGreg Hackmann <ghackmann@google.com>
Thu, 11 Sep 2014 17:21:38 +0000 (17:21 +0000)
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>
arch/arm64/include/asm/hwcap.h
arch/arm64/kernel/setup.c

index 6cddbb0c9f5459cff851101fd3010ad74882a1ef..9a4cbd60c88e756d027b91648b1662ec356e4982 100644 (file)
@@ -41,7 +41,8 @@
 
 #ifdef CONFIG_COMPAT
 #define COMPAT_ELF_HWCAP       (compat_elf_hwcap)
-extern unsigned int compat_elf_hwcap;
+#define COMPAT_ELF_HWCAP2      (compat_elf_hwcap2)
+extern unsigned int compat_elf_hwcap, compat_elf_hwcap2;
 #endif
 
 extern unsigned long elf_hwcap;
index a480eae24ec98e30905958caec24044011b525db..f97c5d26e446c78e4f743559a217d970e026e9be 100644 (file)
@@ -68,6 +68,7 @@ EXPORT_SYMBOL_GPL(elf_hwcap);
                                 COMPAT_HWCAP_VFPv3|COMPAT_HWCAP_VFPv4|\
                                 COMPAT_HWCAP_NEON|COMPAT_HWCAP_IDIV)
 unsigned int compat_elf_hwcap __read_mostly = COMPAT_ELF_HWCAP_DEFAULT;
+unsigned int compat_elf_hwcap2 __read_mostly;
 #endif
 
 static const char *cpu_name;