hwcap.h 1013 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copied from arch/arm64/include/asm/hwcap.h
  3. *
  4. * Copyright (C) 2012 ARM Ltd.
  5. * Copyright (C) 2017 SiFive
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef __ASM_HWCAP_H
  20. #define __ASM_HWCAP_H
  21. #include <uapi/asm/hwcap.h>
  22. #ifndef __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. enum {
  29. CAP_HWCAP = 1,
  30. };
  31. extern unsigned long elf_hwcap;
  32. #endif
  33. #endif