cpu-features.h 585 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2003, 2004 Ralf Baechle
  3. * Copyright (C) 2004 Maciej W. Rozycki
  4. *
  5. * SPDX-License-Identifier: GPL-2.0
  6. */
  7. #ifndef __ASM_CPU_FEATURES_H
  8. #define __ASM_CPU_FEATURES_H
  9. #include <cpu-feature-overrides.h>
  10. #ifdef CONFIG_32BIT
  11. # ifndef cpu_has_64bits
  12. # define cpu_has_64bits 0
  13. # endif
  14. # ifndef cpu_has_64bit_addresses
  15. # define cpu_has_64bit_addresses 0
  16. # endif
  17. #endif
  18. #ifdef CONFIG_64BIT
  19. # ifndef cpu_has_64bits
  20. # define cpu_has_64bits 1
  21. # endif
  22. # ifndef cpu_has_64bit_addresses
  23. # define cpu_has_64bit_addresses 1
  24. # endif
  25. #endif
  26. #endif /* __ASM_CPU_FEATURES_H */