custom message type for VM_INFO
[minix3.git] / sys / arch / arm / include / cdefs.h
blob281f4b6305608af45ef25cb6c3065f77a1f6a84a
1 /* $NetBSD: cdefs.h,v 1.9 2013/08/17 00:21:47 matt Exp $ */
3 #ifndef _ARM_CDEFS_H_
4 #define _ARM_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_6T2__)
13 #define _ARM_ARCH_T2 /* Thumb2 */
14 #endif
16 #if defined (_ARM_ARCH_T2) || defined (__ARM_ARCH_6__) || \
17 defined (__ARM_ARCH_6J__) || defined (__ARM_ARCH_6K__) || \
18 defined (__ARM_ARCH_6Z__) || defined (__ARM_ARCH_6ZK__) || \
19 defined (__ARM_ARCH_6ZM__)
20 #define _ARM_ARCH_6
21 #endif
23 #if defined (_ARM_ARCH_6) || defined (__ARM_ARCH_5T__) || \
24 defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__)
25 #define _ARM_ARCH_5T
26 #endif
28 #if defined (_ARM_ARCH_6) || defined (_ARM_ARCH_5T) || defined (__ARM_ARCH_5__)
29 #define _ARM_ARCH_5
30 #endif
32 #if defined (_ARM_ARCH_5) || defined (__ARM_ARCH_4T__)
33 #define _ARM_ARCH_4T
34 #endif
36 #if defined (_ARM_ARCH_T2) || \
37 (!defined (__thumb__) && \
38 (defined (_ARM_ARCH_6) || defined (__ARM_ARCH_5TE__) || \
39 defined (__ARM_ARCH_5TEJ__)))
40 #define _ARM_ARCH_DWORD_OK
41 #endif
43 #ifdef __ARM_EABI__
44 #define __ALIGNBYTES (8 - 1)
45 #else
46 #define __ALIGNBYTES (sizeof(int) - 1)
47 #endif
49 #endif /* !_ARM_CDEFS_H_ */