[CRIU] [PATCH 05/11] x86: Add 32bit variant of TASK_SIZE

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


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 arch/x86/include/asm/types.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/types.h b/arch/x86/include/asm/types.h
index d7e869a50a4c..abd702c7d26a 100644
--- a/arch/x86/include/asm/types.h
+++ b/arch/x86/include/asm/types.h
@@ -109,7 +109,11 @@ typedef struct {
 #define ASSIGN_TYPED(a, b) do { a = (typeof(a))b; } while (0)
 #define ASSIGN_MEMBER(a,b,m) do { ASSIGN_TYPED((a)->m, (b)->m); } while (0)
 
-#define TASK_SIZE ((1UL << 47) - PAGE_SIZE)
+#ifdef CONFIG_X86_64
+# define TASK_SIZE	((1UL << 47) - PAGE_SIZE)
+#else
+# define TASK_SIZE	(0xc0000000ul)
+#endif
 
 typedef u64 auxv_t;
 typedef u32 tls_t;
-- 
2.1.0



More information about the CRIU mailing list