1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0 */ 223ff8633SDaniel Schwierzeck /* 323ff8633SDaniel Schwierzeck * Copyright (C) 2003, 2004 Ralf Baechle 423ff8633SDaniel Schwierzeck * Copyright (C) 2004 Maciej W. Rozycki 523ff8633SDaniel Schwierzeck */ 623ff8633SDaniel Schwierzeck #ifndef __ASM_CPU_FEATURES_H 723ff8633SDaniel Schwierzeck #define __ASM_CPU_FEATURES_H 823ff8633SDaniel Schwierzeck 923ff8633SDaniel Schwierzeck #include <cpu-feature-overrides.h> 1023ff8633SDaniel Schwierzeck 1123ff8633SDaniel Schwierzeck #ifdef CONFIG_32BIT 1223ff8633SDaniel Schwierzeck # ifndef cpu_has_64bits 1323ff8633SDaniel Schwierzeck # define cpu_has_64bits 0 1423ff8633SDaniel Schwierzeck # endif 1523ff8633SDaniel Schwierzeck # ifndef cpu_has_64bit_addresses 1623ff8633SDaniel Schwierzeck # define cpu_has_64bit_addresses 0 1723ff8633SDaniel Schwierzeck # endif 1823ff8633SDaniel Schwierzeck #endif 1923ff8633SDaniel Schwierzeck 2023ff8633SDaniel Schwierzeck #ifdef CONFIG_64BIT 2123ff8633SDaniel Schwierzeck # ifndef cpu_has_64bits 2223ff8633SDaniel Schwierzeck # define cpu_has_64bits 1 2323ff8633SDaniel Schwierzeck # endif 2423ff8633SDaniel Schwierzeck # ifndef cpu_has_64bit_addresses 2523ff8633SDaniel Schwierzeck # define cpu_has_64bit_addresses 1 2623ff8633SDaniel Schwierzeck # endif 2723ff8633SDaniel Schwierzeck #endif 2823ff8633SDaniel Schwierzeck 2923ff8633SDaniel Schwierzeck #endif /* __ASM_CPU_FEATURES_H */ 30