2013-12-06 12:04:52 +01:00
|
|
|
/* $NetBSD: cdefs.h,v 1.9 2013/08/17 00:21:47 matt Exp $ */
|
2012-11-26 16:59:26 +01:00
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
#ifndef _ARM_CDEFS_H_
|
|
|
|
#define _ARM_CDEFS_H_
|
2012-11-26 16:59:26 +01:00
|
|
|
|
|
|
|
#if defined (__ARM_ARCH_7__) || defined (__ARM_ARCH_7A__) || \
|
|
|
|
defined (__ARM_ARCH_7R__) || defined (__ARM_ARCH_7M__) || \
|
|
|
|
defined (__ARM_ARCH_7EM__) /* 7R, 7M, 7EM are for non MMU arms */
|
|
|
|
#define _ARM_ARCH_7
|
|
|
|
#endif
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
#if defined (_ARM_ARCH_7) || defined (__ARM_ARCH_6T2__)
|
|
|
|
#define _ARM_ARCH_T2 /* Thumb2 */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (_ARM_ARCH_T2) || defined (__ARM_ARCH_6__) || \
|
2012-11-26 16:59:26 +01:00
|
|
|
defined (__ARM_ARCH_6J__) || defined (__ARM_ARCH_6K__) || \
|
|
|
|
defined (__ARM_ARCH_6Z__) || defined (__ARM_ARCH_6ZK__) || \
|
2013-12-06 12:04:52 +01:00
|
|
|
defined (__ARM_ARCH_6ZM__)
|
2012-11-26 16:59:26 +01:00
|
|
|
#define _ARM_ARCH_6
|
|
|
|
#endif
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
#if defined (_ARM_ARCH_6) || defined (__ARM_ARCH_5T__) || \
|
|
|
|
defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__)
|
|
|
|
#define _ARM_ARCH_5T
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (_ARM_ARCH_6) || defined (_ARM_ARCH_5T) || defined (__ARM_ARCH_5__)
|
2012-11-26 16:59:26 +01:00
|
|
|
#define _ARM_ARCH_5
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined (_ARM_ARCH_5) || defined (__ARM_ARCH_4T__)
|
|
|
|
#define _ARM_ARCH_4T
|
|
|
|
#endif
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
#if defined (_ARM_ARCH_T2) || \
|
|
|
|
(!defined (__thumb__) && \
|
|
|
|
(defined (_ARM_ARCH_6) || defined (__ARM_ARCH_5TE__) || \
|
|
|
|
defined (__ARM_ARCH_5TEJ__)))
|
2012-11-26 16:59:26 +01:00
|
|
|
#define _ARM_ARCH_DWORD_OK
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __ARM_EABI__
|
|
|
|
#define __ALIGNBYTES (8 - 1)
|
|
|
|
#else
|
|
|
|
#define __ALIGNBYTES (sizeof(int) - 1)
|
|
|
|
#endif
|
|
|
|
|
2013-12-06 12:04:52 +01:00
|
|
|
#endif /* !_ARM_CDEFS_H_ */
|