kernel: fix sanity check
[minix.git] / sys / arch / arm / include / cdefs.h
blob4f141e0726f9112cb876773e1c40986f3add37ad
1 /* $NetBSD: cdefs.h,v 1.7 2012/08/05 04:13:19 matt Exp $ */
3 #ifndef _MACHINE_CDEFS_H_
4 #define _MACHINE_CDEFS_H_
6 #if defined (__ARM_ARCH_7__) || defined (__ARM_ARCH_7A__) || \
7 defined (__ARM_ARCH_7R__) || defined (__ARM_ARCH_7M__) || \
8 defined (__ARM_ARCH_7EM__) /* 7R, 7M, 7EM are for non MMU arms */
9 #define _ARM_ARCH_7
10 #endif
12 #if defined (_ARM_ARCH_7) || defined (__ARM_ARCH_6__) || \
13 defined (__ARM_ARCH_6J__) || defined (__ARM_ARCH_6K__) || \
14 defined (__ARM_ARCH_6Z__) || defined (__ARM_ARCH_6ZK__) || \
15 defined (__ARM_ARCH_6T2__) || defined (__ARM_ARCH_6ZM__)
16 #define _ARM_ARCH_6
17 #endif
19 #if defined (_ARM_ARCH_6) || defined (__ARM_ARCH_5__) || \
20 defined (__ARM_ARCH_5T__) || defined (__ARM_ARCH_5TE__) || \
21 defined (__ARM_ARCH_5TEJ__)
22 #define _ARM_ARCH_5
23 #endif
25 #if defined (_ARM_ARCH_5) || defined (__ARM_ARCH_4T__)
26 #define _ARM_ARCH_4T
27 #endif
29 #if defined(_ARM_ARCH_6) || defined (__ARM_ARCH_5TE__) || \
30 defined (__ARM_ARCH_5TEJ__)
31 #define _ARM_ARCH_DWORD_OK
32 #endif
34 #ifdef __ARM_EABI__
35 #define __ALIGNBYTES (8 - 1)
36 #else
37 #define __ALIGNBYTES (sizeof(int) - 1)
38 #endif
40 #endif /* !_MACHINE_CDEFS_H_ */