summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/arm/rtems/asm.h
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-09-18 08:07:23 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-09-18 08:07:23 +0000
commit5e61c80327325e9086b56235a46452d79968c58c (patch)
tree0b002d565eced9e2b905cb0af897111c0cbc18b4 /cpukit/score/cpu/arm/rtems/asm.h
parentRemoved symbols and renamed sections. (diff)
downloadrtems-5e61c80327325e9086b56235a46452d79968c58c.tar.bz2
* rtems/score/cpu.h: Fix for inline asm in _CPU_Fatal_halt().
* rtems/asm.h: Added macro to define ARM functions. * cpu_asm.S, arm_exc_handler_low.S: Use macro from above.
Diffstat (limited to 'cpukit/score/cpu/arm/rtems/asm.h')
-rw-r--r--cpukit/score/cpu/arm/rtems/asm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/score/cpu/arm/rtems/asm.h b/cpukit/score/cpu/arm/rtems/asm.h
index bbb9760156..176ac064ee 100644
--- a/cpukit/score/cpu/arm/rtems/asm.h
+++ b/cpukit/score/cpu/arm/rtems/asm.h
@@ -132,4 +132,13 @@
#define PUBLIC(sym) .globl SYM (sym)
#define EXTERN(sym) .globl SYM (sym)
+#ifdef __thumb__
+ #define DEFINE_FUNCTION_ARM(name) \
+ .thumb_func ; .globl name ; name: ; bx pc ; \
+ .arm ; .globl name ## _arm ; name ## _arm:
+#else
+ #define DEFINE_FUNCTION_ARM(name) \
+ .globl name ; name: ; .globl name ## _arm ; name ## _arm:
#endif
+
+#endif /* _RTEMS_ASM_H */