hwcap.h 773 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * linux/arch/unicore32/include/asm/hwcap.h
  3. *
  4. * Code specific to PKUnity SoC and UniCore ISA
  5. *
  6. * Copyright (C) 2001-2010 GUAN Xue-tao
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __UNICORE_HWCAP_H__
  13. #define __UNICORE_HWCAP_H__
  14. /*
  15. * HWCAP flags
  16. */
  17. #define HWCAP_MSP 1
  18. #define HWCAP_UNICORE16 2
  19. #define HWCAP_CMOV 4
  20. #define HWCAP_UNICORE_F64 8
  21. #define HWCAP_TLS 0x80
  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 (HWCAP_CMOV | HWCAP_UNICORE_F64)
  28. #endif
  29. #endif