blob: 11a577cd909722648420d6db061060c39cc7332c [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0 */
Daniel Schwierzeck23ff8632016-01-12 21:48:25 +01002/*
3 * Copyright (C) 2003, 2004 Ralf Baechle
4 * Copyright (C) 2004 Maciej W. Rozycki
Daniel Schwierzeck23ff8632016-01-12 21:48:25 +01005 */
6#ifndef __ASM_CPU_FEATURES_H
7#define __ASM_CPU_FEATURES_H
8
9#include <cpu-feature-overrides.h>
10
11#ifdef CONFIG_32BIT
12# ifndef cpu_has_64bits
13# define cpu_has_64bits 0
14# endif
15# ifndef cpu_has_64bit_addresses
16# define cpu_has_64bit_addresses 0
17# endif
18#endif
19
20#ifdef CONFIG_64BIT
21# ifndef cpu_has_64bits
22# define cpu_has_64bits 1
23# endif
24# ifndef cpu_has_64bit_addresses
25# define cpu_has_64bit_addresses 1
26# endif
27#endif
28
29#endif /* __ASM_CPU_FEATURES_H */