[PATCH 1/4] arm: Add FUNCTION_THUMB_ENTRY(), etc.
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed May 8 09:48:52 UTC 2013
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:
--
1.7.7
More information about the devel
mailing list