cpu-features.h 585 B

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