From 701f0782e602df9af4467dc62fb7415ea19086ad Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 7 Feb 2012 22:07:01 +0100 Subject: Support Thumb 2. --- cpukit/score/cpu/arm/rtems/asm.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpukit/score/cpu/arm/rtems/asm.h') 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: -- cgit v1.2.3