[rtems commit] Support Thumb 2.

Sebastian Huber sebh at rtems.org
Sat Feb 11 20:09:17 UTC 2012


Module:    rtems
Branch:    master
Commit:    701f0782e602df9af4467dc62fb7415ea19086ad
Changeset: http://git.rtems.org/rtems/commit/?id=701f0782e602df9af4467dc62fb7415ea19086ad

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Feb  7 22:07:01 2012 +0100

Support Thumb 2.

---

 cpukit/score/cpu/arm/rtems/asm.h |    5 ++++-
 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 9d56c51..e6951db 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:




More information about the vc mailing list