Commit eaf1b6fb authored by Dan Smith's avatar Dan Smith Committed by Martin Schwidefsky

[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: default avatarDan Smith <danms@us.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 1fbc9f46
...@@ -172,6 +172,8 @@ ...@@ -172,6 +172,8 @@
#define NUM_CRS 16 #define NUM_CRS 16
#define NUM_ACRS 16 #define NUM_ACRS 16
#define NUM_CR_WORDS 3
#define FPR_SIZE 8 #define FPR_SIZE 8
#define FPC_SIZE 4 #define FPC_SIZE 4
#define FPC_PAD_SIZE 4 /* gcc insists on aligning the fpregs */ #define FPC_PAD_SIZE 4 /* gcc insists on aligning the fpregs */
...@@ -334,7 +336,7 @@ struct pt_regs ...@@ -334,7 +336,7 @@ struct pt_regs
*/ */
typedef struct typedef struct
{ {
unsigned long cr[3]; unsigned long cr[NUM_CR_WORDS];
} per_cr_words; } per_cr_words;
#define PER_EM_MASK 0xE8000000UL #define PER_EM_MASK 0xE8000000UL
......
#ifndef _PTRACE32_H #ifndef _PTRACE32_H
#define _PTRACE32_H #define _PTRACE32_H
#include <asm/ptrace.h> /* needed for NUM_CR_WORDS */
#include "compat_linux.h" /* needed for psw_compat_t */ #include "compat_linux.h" /* needed for psw_compat_t */
typedef struct { typedef struct {
__u32 cr[3]; __u32 cr[NUM_CR_WORDS];
} per_cr_words32; } per_cr_words32;
typedef struct { typedef struct {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment