diff options
author | Nick Clifton <nickc@redhat.com> | 2011-07-13 15:06:21 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-07-13 15:06:21 +0000 |
commit | 415e1ecce4374a99c49b2e813ecc6b525fea1a69 (patch) | |
tree | 0abcb18a2db2ca309f662be31a4a8c0f2e21b787 /libgloss/arm/swi.h | |
parent | 1d15e018c78614860322e074b8f9ff24d829637f (diff) | |
download | cygnal-415e1ecce4374a99c49b2e813ecc6b525fea1a69.tar.gz cygnal-415e1ecce4374a99c49b2e813ecc6b525fea1a69.tar.bz2 cygnal-415e1ecce4374a99c49b2e813ecc6b525fea1a69.zip |
* arm/crt0.S: Support armv6-m processors in libgloss.
* arm/swi.h: Likewise.
* arm/trap.S: Likewise.
* arm/redboot-crt0.S: Likewise.
* arm/linux-crt0.c: Likewise.
* arm/arm.h: New.
Diffstat (limited to 'libgloss/arm/swi.h')
-rw-r--r-- | libgloss/arm/swi.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libgloss/arm/swi.h b/libgloss/arm/swi.h index 7638dbe4e..0f9313447 100644 --- a/libgloss/arm/swi.h +++ b/libgloss/arm/swi.h @@ -1,3 +1,5 @@ +#include "arm.h" + /* SWI numbers for RDP (Demon) monitor. */ #define SWI_WriteC 0x0 #define SWI_Write0 0x2 @@ -33,8 +35,8 @@ #else #define AngelSWI AngelSWI_ARM #endif -/* For Thumb-2 code use the BKPT instruction instead of SWI. */ -#ifdef __thumb2__ +/* For thumb only architectures use the BKPT instruction instead of SWI. */ +#ifdef THUMB_V7M_V6M #define AngelSWIInsn "bkpt" #define AngelSWIAsm bkpt #else |