[Devel] [PATCH 2/7] cr_tests: Update cr.h using the rewrite-cr script.

Matt Helsley matthltc at us.ibm.com
Mon Oct 12 12:38:23 PDT 2009


Adds "GHOST" define and PowerPC syscall number definitions.

Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
---
 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 at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list