[S390] 64-bit register support for 31-bit processes
From: Heiko Carstens <heiko.carstens@de.ibm.com> From: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
committed by
Martin Schwidefsky
parent
dd43bfca43
commit
ea2a4d3a3a
@@ -92,6 +92,18 @@
|
||||
/* Keep this the last entry. */
|
||||
#define R_390_NUM 61
|
||||
|
||||
/* Bits present in AT_HWCAP. */
|
||||
#define HWCAP_S390_ESAN3 1
|
||||
#define HWCAP_S390_ZARCH 2
|
||||
#define HWCAP_S390_STFLE 4
|
||||
#define HWCAP_S390_MSA 8
|
||||
#define HWCAP_S390_LDISP 16
|
||||
#define HWCAP_S390_EIMM 32
|
||||
#define HWCAP_S390_DFP 64
|
||||
#define HWCAP_S390_HPAGE 128
|
||||
#define HWCAP_S390_ETF3EH 256
|
||||
#define HWCAP_S390_HIGH_GPRS 512
|
||||
|
||||
/*
|
||||
* These are used to set parameters in the core dumps.
|
||||
*/
|
||||
|
@@ -311,6 +311,10 @@ typedef struct
|
||||
__u32 orig_gpr2;
|
||||
} s390_compat_regs;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
__u32 gprs_high[NUM_GPRS];
|
||||
} s390_compat_regs_high;
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
|
@@ -9,6 +9,21 @@
|
||||
#ifndef _ASM_S390_UCONTEXT_H
|
||||
#define _ASM_S390_UCONTEXT_H
|
||||
|
||||
#define UC_EXTENDED 0x00000001
|
||||
|
||||
#ifndef __s390x__
|
||||
|
||||
struct ucontext_extended {
|
||||
unsigned long uc_flags;
|
||||
struct ucontext *uc_link;
|
||||
stack_t uc_stack;
|
||||
_sigregs uc_mcontext;
|
||||
unsigned long uc_sigmask[2];
|
||||
unsigned long uc_gprs_high[16];
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
struct ucontext {
|
||||
unsigned long uc_flags;
|
||||
struct ucontext *uc_link;
|
||||
|
Reference in New Issue
Block a user