]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[S390] Expose a constant for the number of words representing the CRs
authorDan Smith <danms@us.ibm.com>
Thu, 26 Mar 2009 14:24:40 +0000 (15:24 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 26 Mar 2009 14:24:25 +0000 (15:24 +0100)
We need to use this value in the checkpoint/restart code and would like to
have a constant instead of a magic '3'.

Cc: linux-s390@vger.kernel.org
Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/ptrace.h
arch/s390/kernel/compat_ptrace.h

index 8920025c3c02ed3bb95919861bf4b16b823a731f..f1b051630c50c50fbf83ee82e42a16ecbae3a184 100644 (file)
 #define NUM_CRS                16
 #define NUM_ACRS       16
 
+#define NUM_CR_WORDS   3
+
 #define FPR_SIZE       8
 #define FPC_SIZE       4
 #define FPC_PAD_SIZE   4 /* gcc insists on aligning the fpregs */
@@ -334,7 +336,7 @@ struct pt_regs
  */
 typedef struct
 {
-       unsigned long cr[3];
+       unsigned long cr[NUM_CR_WORDS];
 } per_cr_words;
 
 #define PER_EM_MASK 0xE8000000UL
index a2be3a978d5c43281e3cf3115e2dfb19d473307f..123dd660d7fbed3793ed34a6dee6add2bc25c05a 100644 (file)
@@ -1,10 +1,11 @@
 #ifndef _PTRACE32_H
 #define _PTRACE32_H
 
+#include <asm/ptrace.h>    /* needed for NUM_CR_WORDS */
 #include "compat_linux.h"  /* needed for psw_compat_t */
 
 typedef struct {
-       __u32 cr[3];
+       __u32 cr[NUM_CR_WORDS];
 } per_cr_words32;
 
 typedef struct {