mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-21 01:06:58 +00:00
x86: Add 32bit variant of TASK_SIZE
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
918f20648c
commit
816c802176
1 changed files with 9 additions and 1 deletions
|
|
@ -109,7 +109,15 @@ 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
|
||||
/*
|
||||
* 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 u32 tls_t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue