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)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 4 Mar 2014 08:05:59 +0000 (08:05 +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 c8e9effe52e10f6b59d39de293aca7607f7d5bce..349c49260f09270d6a29bbf29c0f5ccef03c8bf0 100644 (file)
@@ -69,6 +69,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;