From 415b789cbfdea98eb9de58ede4447e742ed72dc7 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Mon, 23 Jan 2012 14:44:23 +0400 Subject: [PATCH] image: Add mm_saved_auxv entry It's needed for auxv dump and restore. Signed-off-by: Cyrill Gorcunov Acked-by: Pavel Emelyanov --- include/image.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/image.h b/include/image.h index 29e63fcbe..b2fce3270 100644 --- a/include/image.h +++ b/include/image.h @@ -222,6 +222,12 @@ struct ckpt_arch_entry { #define CKPT_CORE_SIZE (2 * 4096) +#ifdef CONFIG_X86_64 +# define AT_VECTOR_SIZE 44 +#else +# define AT_VECTOR_SIZE 22 /* Not needed at moment */ +#endif + struct task_core_entry { u8 task_state; u8 pad[3]; @@ -242,6 +248,7 @@ struct task_core_entry { u64 mm_env_start; u64 mm_env_end; u64 blk_sigset; + u64 mm_saved_auxv[AT_VECTOR_SIZE]; }; struct core_entry {