/arch/unicore32/include/asm/hwcap.h

http://github.com/mirrors/linux · C Header · 29 lines · 11 code · 3 blank · 15 comment · 1 complexity · b2a1ea0d59fcbc58d1fd2eec6349d555 MD5 · raw file

  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * linux/arch/unicore32/include/asm/hwcap.h
  4. *
  5. * Code specific to PKUnity SoC and UniCore ISA
  6. *
  7. * Copyright (C) 2001-2010 GUAN Xue-tao
  8. */
  9. #ifndef __UNICORE_HWCAP_H__
  10. #define __UNICORE_HWCAP_H__
  11. /*
  12. * HWCAP flags
  13. */
  14. #define HWCAP_MSP 1
  15. #define HWCAP_UNICORE16 2
  16. #define HWCAP_CMOV 4
  17. #define HWCAP_UNICORE_F64 8
  18. #define HWCAP_TLS 0x80
  19. #if defined(__KERNEL__) && !defined(__ASSEMBLY__)
  20. /*
  21. * This yields a mask that user programs can use to figure out what
  22. * instruction set this cpu supports.
  23. */
  24. #define ELF_HWCAP (HWCAP_CMOV | HWCAP_UNICORE_F64)
  25. #endif
  26. #endif