[rtems commit] arm: Switch to ARM only for Thumb-1

Sebastian Huber sebh at rtems.org
Fri May 3 15:29:26 UTC 2013


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri May  3 16:14:45 2013 +0200

arm: Switch to ARM only for Thumb-1

The Thumb-2 instruction set as encodings for the relevant instructions.

---

 cpukit/score/cpu/arm/rtems/score/cpu.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpukit/score/cpu/arm/rtems/score/cpu.h b/cpukit/score/cpu/arm/rtems/score/cpu.h
index bbcded6..5ed6b9b 100644
--- a/cpukit/score/cpu/arm/rtems/score/cpu.h
+++ b/cpukit/score/cpu/arm/rtems/score/cpu.h
@@ -43,7 +43,7 @@
  */
 /**@{**/
 
-#ifdef __thumb__
+#if defined(__thumb__) && !defined(__thumb2__)
   #define ARM_SWITCH_REGISTERS uint32_t arm_switch_reg
   #define ARM_SWITCH_TO_ARM ".align 2\nbx pc\n.arm\n"
   #define ARM_SWITCH_BACK "add %[arm_switch_reg], pc, #1\nbx %[arm_switch_reg]\n.thumb\n"




More information about the vc mailing list