summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/ptrace.h
diff options
context:
space:
mode:
authorDan Smith <danms@us.ibm.com>2009-03-26 15:24:40 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-03-26 15:24:25 +0100
commiteaf1b6fbca8d9be87bef2eafaa3f40bffe26ce04 (patch)
tree13376d104cff8d398be925d060d2f89b760948e5 /arch/s390/include/asm/ptrace.h
parent1fbc9f46a024535d95c3d5f136901decd86b109e (diff)
downloadblackbird-op-linux-eaf1b6fbca8d9be87bef2eafaa3f40bffe26ce04.tar.gz
blackbird-op-linux-eaf1b6fbca8d9be87bef2eafaa3f40bffe26ce04.zip
[S390] Expose a constant for the number of words representing the CRs
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>
Diffstat (limited to 'arch/s390/include/asm/ptrace.h')
-rw-r--r--arch/s390/include/asm/ptrace.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/s390/include/asm/ptrace.h b/arch/s390/include/asm/ptrace.h
index 8920025c3c02..f1b051630c50 100644
--- a/arch/s390/include/asm/ptrace.h
+++ b/arch/s390/include/asm/ptrace.h
@@ -172,6 +172,8 @@
#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
OpenPOWER on IntegriCloud