summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/arm/rtems/asm.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-05-07 11:22:38 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-05-10 12:10:13 +0200
commitaedeb57783e4f3099ef006b1197d631308de1693 (patch)
tree1c74ad1c8ff850de19ec0ecd01c8fad1cc067fe2 /cpukit/score/cpu/arm/rtems/asm.h
parentRevert bootstrap whitespace changes. (diff)
downloadrtems-aedeb57783e4f3099ef006b1197d631308de1693.tar.bz2
arm: Add FUNCTION_THUMB_ENTRY(), etc.
Add FUNCTION_THUMB_ENTRY(), FUNCTION_ENTRY() and FUNCTION_END().
Diffstat (limited to 'cpukit/score/cpu/arm/rtems/asm.h')
-rw-r--r--cpukit/score/cpu/arm/rtems/asm.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/cpukit/score/cpu/arm/rtems/asm.h b/cpukit/score/cpu/arm/rtems/asm.h
index d4e4283d48..2172269e6a 100644
--- a/cpukit/score/cpu/arm/rtems/asm.h
+++ b/cpukit/score/cpu/arm/rtems/asm.h
@@ -143,6 +143,23 @@
#define PUBLIC(sym) .globl SYM (sym)
#define EXTERN(sym) .globl SYM (sym)
+#define FUNCTION_THUMB_ENTRY(name) \
+ .thumb; \
+ .thumb_func; \
+ .align 2; \
+ .globl name; \
+ .type name, %function; \
+ name:
+
+#define FUNCTION_ENTRY(name) \
+ .align 2; \
+ .globl name; \
+ .type name, %function; \
+ name:
+
+#define FUNCTION_END(name) \
+ .size name, . - name
+
#if defined(ARM_MULTILIB_ARCH_V7M)
#define DEFINE_FUNCTION_ARM(name) \
.thumb_func ; .globl name ; name: