diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2006-02-07 18:46:23 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2006-02-07 18:46:23 +0000 |
commit | f9fa511d46228486425d0f85437c71547925195f (patch) | |
tree | ef4f815bb69ea64dd1a7461d1a48b595a0533a8e /libgloss/arm/swi.h | |
parent | 9bbe6d5d283de104216238d684e0a46506326706 (diff) | |
download | cygnal-f9fa511d46228486425d0f85437c71547925195f.tar.gz cygnal-f9fa511d46228486425d0f85437c71547925195f.tar.bz2 cygnal-f9fa511d46228486425d0f85437c71547925195f.zip |
2006-02-07 Paul Brook <paul@codesourcery.com>
* arm/crt0.S: Add Thumb-2 startup code.
* arm/redboot-crt0.S: Ditto.
* arm/libcfunc.c (do_AngelSWI): Use AngelSWIInsn.
* arm/swi.h (AngelSWIInsn, AngelSWIAsm): Define.
* arm/trap.S: Disable for Thumb-2.
Diffstat (limited to 'libgloss/arm/swi.h')
-rw-r--r-- | libgloss/arm/swi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libgloss/arm/swi.h b/libgloss/arm/swi.h index 15c3866a1..f5c910313 100644 --- a/libgloss/arm/swi.h +++ b/libgloss/arm/swi.h @@ -33,6 +33,14 @@ #else #define AngelSWI AngelSWI_ARM #endif +/* For Thumb-2 code use the BKPT instruction instead of SWI. */ +#ifdef __thumb2__ +#define AngelSWIInsn "bkpt" +#define AngelSWIAsm bkpt +#else +#define AngelSWIInsn "swi" +#define AngelSWIAsm swi +#endif /* The reason codes: */ #define AngelSWI_Reason_Open 0x01 |