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

Configure Feed

Select the types of activity you want to include in your feed.

ARM: 7982/1: introduce HWCAP2 feature bits for ARMv8 Crypto Extensions

This allocates feature bits 0-4 in HWCAP2 for the crypto and CRC
extensions introduced in ARMv8.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Ard Biesheuvel and committed by
Russell King
8258a989 b342ea4e

+10
+5
arch/arm/include/uapi/asm/hwcap.h
··· 31 31 /* 32 32 * HWCAP2 flags - for elf_hwcap2 (in kernel) and AT_HWCAP2 33 33 */ 34 + #define HWCAP2_AES (1 << 0) 35 + #define HWCAP2_PMULL (1 << 1) 36 + #define HWCAP2_SHA1 (1 << 2) 37 + #define HWCAP2_SHA2 (1 << 3) 38 + #define HWCAP2_CRC32 (1 << 4) 34 39 35 40 #endif /* _UAPI__ASMARM_HWCAP_H */
+5
arch/arm/kernel/setup.c
··· 1009 1009 }; 1010 1010 1011 1011 static const char *hwcap2_str[] = { 1012 + "aes", 1013 + "pmull", 1014 + "sha1", 1015 + "sha2", 1016 + "crc32", 1012 1017 NULL 1013 1018 }; 1014 1019