hwcap.h 753 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __ASMARM_HWCAP_H
  2. #define __ASMARM_HWCAP_H
  3. /*
  4. * HWCAP flags - for elf_hwcap (in kernel) and AT_HWCAP
  5. */
  6. #define HWCAP_SWP 1
  7. #define HWCAP_HALF 2
  8. #define HWCAP_THUMB 4
  9. #define HWCAP_26BIT 8 /* Play it safe */
  10. #define HWCAP_FAST_MULT 16
  11. #define HWCAP_FPA 32
  12. #define HWCAP_VFP 64
  13. #define HWCAP_EDSP 128
  14. #define HWCAP_JAVA 256
  15. #define HWCAP_IWMMXT 512
  16. #define HWCAP_CRUNCH 1024
  17. #define HWCAP_THUMBEE 2048
  18. #define HWCAP_NEON 4096
  19. #define HWCAP_VFPv3 8192
  20. #define HWCAP_VFPv3D16 16384
  21. #define HWCAP_TLS 32768
  22. #if defined(__KERNEL__) && !defined(__ASSEMBLY__)
  23. /*
  24. * This yields a mask that user programs can use to figure out what
  25. * instruction set this cpu supports.
  26. */
  27. #define ELF_HWCAP (elf_hwcap)
  28. extern unsigned int elf_hwcap;
  29. #endif
  30. #endif