[CRIU] [PATCH 4/5] Add linkage.h

Cyrill Gorcunov gorcunov at openvz.org
Tue Mar 27 09:01:41 EDT 2012


We will need it for syscalls.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 include/linkage.h |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 include/linkage.h

diff --git a/include/linkage.h b/include/linkage.h
new file mode 100644
index 0000000..7ef98ad
--- /dev/null
+++ b/include/linkage.h
@@ -0,0 +1,20 @@
+#ifndef LINKAGE_H_
+#define LINKAGE_H_
+
+#define __ALIGN		.align 4, 0x90
+#define __ALIGN_STR	".align 4, 0x90"
+
+#define GLOBAL(name)		\
+	.globl name;		\
+	name:
+
+#define ENTRY(name)		\
+	.globl name;		\
+	.type name, @function;	\
+	__ALIGN;		\
+	name:
+
+#define END(sym)		\
+	.size sym, . - sym
+
+#endif /* LINKAGE_H_ */
-- 
1.7.7.6



More information about the CRIU mailing list