[rtems commit] arm: Add FUNCTION_THUMB_ENTRY(), etc.

Sebastian Huber sebh at rtems.org
Fri May 10 10:05:35 UTC 2013


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue May  7 11:22:38 2013 +0200

arm: Add FUNCTION_THUMB_ENTRY(), etc.

Add FUNCTION_THUMB_ENTRY(), FUNCTION_ENTRY() and FUNCTION_END().

---

 cpukit/score/cpu/arm/rtems/asm.h |   17 +++++++++++++++++
 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 d4e4283..2172269 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:




More information about the vc mailing list