Commit 816c8021 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

x86: Add 32bit variant of TASK_SIZE

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 918f2064
...@@ -109,7 +109,15 @@ typedef struct { ...@@ -109,7 +109,15 @@ typedef struct {
#define ASSIGN_TYPED(a, b) do { a = (typeof(a))b; } while (0) #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 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
/*
* Task size may be limited to 3G but we need a
* higher limit, because it's backward compatible.
*/
# define TASK_SIZE (0xffffe000)
#endif
typedef u64 auxv_t; typedef u64 auxv_t;
typedef u32 tls_t; typedef u32 tls_t;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment