diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-03 16:14:45 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-03 17:30:54 +0200 |
commit | 2bbea4dd33e5d5ef11e56593679356404b4196e0 (patch) | |
tree | 7e4f71f965b983caa7314fdc0e3349c56dc15134 /cpukit | |
parent | arm: Fix DEFINE_FUNCTION_ARM() for ARMv7-AR (diff) | |
download | rtems-2bbea4dd33e5d5ef11e56593679356404b4196e0.tar.bz2 |
arm: Switch to ARM only for Thumb-1
The Thumb-2 instruction set as encodings for the relevant instructions.
Diffstat (limited to 'cpukit')
-rw-r--r-- | 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 bbcded682c..5ed6b9b4e7 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" |