[CRIU] [PATCH 09/11] x86: parasite-head.S -- Add 32bit stub

Cyrill Gorcunov gorcunov at openvz.org
Wed Apr 22 10:20:04 PDT 2015


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 arch/x86/parasite-head.S | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/x86/parasite-head.S b/arch/x86/parasite-head.S
index 8caf9b3b9172..ac71dc90db09 100644
--- a/arch/x86/parasite-head.S
+++ b/arch/x86/parasite-head.S
@@ -2,6 +2,9 @@
 #include "parasite.h"
 
 	.section .head.text, "ax"
+
+#ifdef CONFIG_X86_64
+
 ENTRY(__export_parasite_head_start)
 	subq	$16, %rsp
 	andq	$~15, %rsp
@@ -15,3 +18,13 @@ ENTRY(__export_parasite_head_start)
 __export_parasite_cmd:
 	.long 0
 END(__export_parasite_head_start)
+
+#else /* CONFIG_X86_64 */
+
+ENTRY(__export_parasite_head_start)
+	.align 8
+GLOBAL(__export_parasite_cmd)
+	.long 0
+END(__export_parasite_head_start)
+
+#endif /* CONFIG_X86_64 */
-- 
2.1.0



More information about the CRIU mailing list