Adds "GHOST" define and PowerPC syscall number definitions. Signed-off-by: Matt Helsley <matthltc@xxxxxxxxxx> --- cr.h | 30 +++++++++++++++++++++--------- 1 files changed, 21 insertions(+), 9 deletions(-) diff --git a/cr.h b/cr.h index a7dce6a..a58c2e4 100644 --- a/cr.h +++ b/cr.h @@ -1,9 +1,8 @@ /* AUTOMATICALLY GENERATED by rewrite-cr-header.sh */ +#ifndef _LINUX_CHECKPOINT_H_ +#include <asm/unistd.h> -#ifndef _LINUX_CHECKPOINT_H_ #define _LINUX_CHECKPOINT_H_ - -#include <asm/unistd.h> /* * Generic checkpoint-restart * @@ -14,7 +13,7 @@ * distribution for more details. */ -#define CHECKPOINT_VERSION 1 +#define CHECKPOINT_VERSION 2 /* checkpoint user flags */ #define CHECKPOINT_SUBTREE 0x1 @@ -22,6 +21,11 @@ /* restart user flags */ #define RESTART_TASKSELF 0x1 #define RESTART_FROZEN 0x2 +#define RESTART_GHOST 0x4 + + + + @@ -65,8 +69,17 @@ /* mips unsupported. */ /* mn10300 unsupported. */ /* parisc unsupported. */ -/* powerpc unsupported. */ -#if __s390x__ +#if __powerpc__ + +#ifndef __NR_checkpoint +#define __NR_checkpoint 323 +#endif + +#ifndef __NR_restart +#define __NR_restart 324 +#endif + +#elif __s390x__ #ifndef __NR_checkpoint #define __NR_checkpoint 332 @@ -93,6 +106,5 @@ /* x86_64 unsupported. */ /* x86_64 unsupported. */ /* xtensa unsupported. */ -#endif - -#endif +#endif /* arch-specific sections */ +#endif /* _LINUX_CHECKPOINT_H_ */ -- 1.5.6.3 _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers