arm64: Widen hwcap to be 64 bit
authorSteve Capper <Steve.Capper@arm.com>
Wed, 18 Sep 2013 15:14:28 +0000 (16:14 +0100)
committerGreg Hackmann <ghackmann@google.com>
Thu, 11 Sep 2014 17:20:40 +0000 (17:20 +0000)
Under arm64 elf_hwcap is a 32 bit quantity, but it is stored in
a 64 bit auxiliary ELF field and glibc reads hwcap as 64 bit.

This patch widens elf_hwcap to be 64 bit.

Signed-off-by: Steve Capper <steve.capper@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/hwcap.h
arch/arm64/kernel/setup.c

index 3a48433dfb570b5d61805de3acb6a36693a5683a..6cddbb0c9f5459cff851101fd3010ad74882a1ef 100644 (file)
@@ -44,6 +44,6 @@
 extern unsigned int compat_elf_hwcap;
 #endif
 
-extern unsigned int elf_hwcap;
+extern unsigned long elf_hwcap;
 #endif
 #endif
index 57cb0063d74cd3f2be37ab7ef4ce5f73a514bcf9..d6c340eb45cc3076b659d8125e53e60c1506d60f 100644 (file)
@@ -57,7 +57,7 @@
 unsigned int processor_id;
 EXPORT_SYMBOL(processor_id);
 
-unsigned int elf_hwcap __read_mostly;
+unsigned long elf_hwcap __read_mostly;
 EXPORT_SYMBOL_GPL(elf_hwcap);
 
 #ifdef CONFIG_COMPAT