Catalin Marinas | f884b1c | 2007-07-12 16:10:22 +0100 | [diff] [blame] | 1 | #ifndef __ASMARM_HWCAP_H |
| 2 | #define __ASMARM_HWCAP_H |
| 3 | |
| 4 | /* |
| 5 | * HWCAP flags - for elf_hwcap (in kernel) and AT_HWCAP |
| 6 | */ |
| 7 | #define HWCAP_SWP 1 |
| 8 | #define HWCAP_HALF 2 |
| 9 | #define HWCAP_THUMB 4 |
| 10 | #define HWCAP_26BIT 8 /* Play it safe */ |
| 11 | #define HWCAP_FAST_MULT 16 |
| 12 | #define HWCAP_FPA 32 |
| 13 | #define HWCAP_VFP 64 |
| 14 | #define HWCAP_EDSP 128 |
| 15 | #define HWCAP_JAVA 256 |
| 16 | #define HWCAP_IWMMXT 512 |
| 17 | #define HWCAP_CRUNCH 1024 |
Catalin Marinas | d7f864b | 2008-04-18 22:43:06 +0100 | [diff] [blame] | 18 | #define HWCAP_THUMBEE 2048 |
Catalin Marinas | 2bedbdf | 2008-11-06 13:23:07 +0000 | [diff] [blame] | 19 | #define HWCAP_NEON 4096 |
Catalin Marinas | 7279dc3 | 2009-02-11 13:13:56 +0100 | [diff] [blame] | 20 | #define HWCAP_VFPv3 8192 |
| 21 | #define HWCAP_VFPv3D16 16384 |
Tony Lindgren | f159f4e | 2010-07-05 14:53:10 +0100 | [diff] [blame] | 22 | #define HWCAP_TLS 32768 |
Catalin Marinas | f884b1c | 2007-07-12 16:10:22 +0100 | [diff] [blame] | 23 | |
| 24 | #if defined(__KERNEL__) && !defined(__ASSEMBLY__) |
| 25 | /* |
| 26 | * This yields a mask that user programs can use to figure out what |
| 27 | * instruction set this cpu supports. |
| 28 | */ |
| 29 | #define ELF_HWCAP (elf_hwcap) |
| 30 | extern unsigned int elf_hwcap; |
| 31 | #endif |
| 32 | |
| 33 | #endif |