summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/arm/rtems/asm.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-02-07 22:07:01 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-02-11 21:09:44 +0100
commit701f0782e602df9af4467dc62fb7415ea19086ad (patch)
tree84f779e56d1423fca35e0832f1fd0602aaaa2cd1 /cpukit/score/cpu/arm/rtems/asm.h
parentARMv7-M NVIC and MPU API changes. (diff)
downloadrtems-701f0782e602df9af4467dc62fb7415ea19086ad.tar.bz2
Support Thumb 2.
Diffstat (limited to 'cpukit/score/cpu/arm/rtems/asm.h')
-rw-r--r--cpukit/score/cpu/arm/rtems/asm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/score/cpu/arm/rtems/asm.h b/cpukit/score/cpu/arm/rtems/asm.h
index 9d56c514a6..e6951dbb28 100644
--- a/cpukit/score/cpu/arm/rtems/asm.h
+++ b/cpukit/score/cpu/arm/rtems/asm.h
@@ -148,7 +148,10 @@
#define PUBLIC(sym) .globl SYM (sym)
#define EXTERN(sym) .globl SYM (sym)
-#ifdef __thumb__
+#if defined(__thumb2__)
+ #define DEFINE_FUNCTION_ARM(name) \
+ .thumb_func ; .globl name ; name:
+#elif defined(__thumb__)
#define DEFINE_FUNCTION_ARM(name) \
.thumb_func ; .globl name ; name: ; bx pc ; \
.arm ; .globl name ## _arm ; name ## _arm: