blob: a6e9d940190c9683525fcb972a6709de509fb7ca [file] [log] [blame]
Daniel Schwierzeckb01d3e12016-01-12 21:48:25 +01001/*
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
10#include <cpu-feature-overrides.h>
11
12#ifdef CONFIG_32BIT
13# ifndef cpu_has_64bits
14# define cpu_has_64bits 0
15# endif
16# ifndef cpu_has_64bit_addresses
17# define cpu_has_64bit_addresses 0
18# endif
19#endif
20
21#ifdef CONFIG_64BIT
22# ifndef cpu_has_64bits
23# define cpu_has_64bits 1
24# endif
25# ifndef cpu_has_64bit_addresses
26# define cpu_has_64bit_addresses 1
27# endif
28#endif
29
30#endif /* __ASM_CPU_FEATURES_H */