summaryrefslogtreecommitdiff
path: root/include/asm-blackfin/linkage.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-blackfin/linkage.h')
-rw-r--r--include/asm-blackfin/linkage.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/include/asm-blackfin/linkage.h b/include/asm-blackfin/linkage.h
index 4fc1acf..fbb497c 100644
--- a/include/asm-blackfin/linkage.h
+++ b/include/asm-blackfin/linkage.h
@@ -51,10 +51,24 @@
#define ALIGN __ALIGN
#define ALIGN_STR __ALIGN_STR
-#define ENTRY(name) \
- .globl SYMBOL_NAME(name); \
+#define LENTRY(name) \
ALIGN; \
SYMBOL_NAME_LABEL(name)
+
+#define ENTRY(name) \
+ .globl SYMBOL_NAME(name); \
+ LENTRY(name)
+#endif
+
+#ifndef END
+#define END(name) \
+ .size name, .-name
+#endif
+
+#ifndef ENDPROC
+#define ENDPROC(name) \
+ .type name, @function; \
+ END(name)
#endif
#endif