lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 30 Sep 2015 01:14:10 +0300 From: Yury Norov <ynorov@...iumnetworks.com> To: <linux-arm-kernel@...ts.infradead.org>, <linux-kernel@...r.kernel.org>, <catalin.marinas@....com>, <arnd@...db.de>, <agraf@...e.de>, <bamvor.zhangjian@...wei.com> CC: <yury.norov@...il.com>, <philipp.tomsich@...obroma-systems.com>, <apinski@...ium.com>, <christoph.muellner@...obroma-systems.com>, <klimov.linux@...il.com>, Yury Norov <ynorov@...iumnetworks.com> Subject: [PATCH v5 13/23] arm64:ilp32: share HWCAP between LP64 and ILP32 From: Andrew Pinski <apinski@...ium.com> Signed-off-by: Philipp Tomsich <philipp.tomsich@...obroma-systems.com> Signed-off-by: Christoph Muellner <christoph.muellner@...obroma-systems.com> Signed-off-by: Yury Norov <ynorov@...iumnetworks.com> diff --git a/arch/arm64/include/asm/hwcap.h b/arch/arm64/include/asm/hwcap.h index 0ad7351..1e5361e 100644 --- a/arch/arm64/include/asm/hwcap.h +++ b/arch/arm64/include/asm/hwcap.h @@ -47,9 +47,17 @@ #define ELF_HWCAP (elf_hwcap) #ifdef CONFIG_COMPAT -#define COMPAT_ELF_HWCAP (compat_elf_hwcap) -#define COMPAT_ELF_HWCAP2 (compat_elf_hwcap2) extern unsigned int compat_elf_hwcap, compat_elf_hwcap2; +#define COMPAT_ELF_HWCAP \ + (is_a32_compat_task() \ + ? compat_elf_hwcap \ + : elf_hwcap) + +#define COMPAT_ELF_HWCAP2 \ + (is_a32_compat_task() \ + ? compat_elf_hwcap2 \ + : 0) + #endif extern unsigned long elf_hwcap; -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists