aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJan Beulich <[email protected]>2006-03-24 03:16:17 -0800
committerLinus Torvalds <[email protected]>2006-03-24 07:33:25 -0800
commitab7efcc97ebc92e03c0474dfd38f9c7b84b84115 (patch)
treeb0eb6b9abce5c47af9c61b606f37ec1c4d247e65 /include/linux
parent09fe316a7b10219be592118626850e1dfdfcc1aa (diff)
[PATCH] abstract type/size specification for assembly
Provide abstraction for generating type and size information of assembly routines and data, while permitting architectures to override these defaults. Signed-off-by: Jan Beulich <[email protected]> Cc: "Russell King" <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: "Andi Kleen" <[email protected]> Cc: "Luck, Tony" <[email protected]> Cc: Miles Bader <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/linkage.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/include/linux/linkage.h b/include/linux/linkage.h
index 147eb01e0d4b..c08c9983e840 100644
--- a/include/linux/linkage.h
+++ b/include/linux/linkage.h
@@ -28,17 +28,27 @@
#define ALIGN __ALIGN
#define ALIGN_STR __ALIGN_STR
+#ifndef ENTRY
#define ENTRY(name) \
.globl name; \
ALIGN; \
name:
+#endif
#define KPROBE_ENTRY(name) \
.section .kprobes.text, "ax"; \
- .globl name; \
- ALIGN; \
- name:
+ ENTRY(name)
+#ifndef END
+#define END(name) \
+ .size name, .-name
+#endif
+
+#ifndef ENDPROC
+#define ENDPROC(name) \
+ .type name, @function; \
+ END(name)
+#endif
#endif