s390x: provide sigcontext struct definition

This structure was missed when creating the s390x port.

This is based on the report and patch from William Pitcock, but with a
modified structure defintion to more closely match the kernel's
definition.
This commit is contained in:
Bobby Bingham 2017-03-26 14:50:37 -05:00 committed by Rich Felker
parent bb439bb171
commit 5555041668
1 changed files with 15 additions and 0 deletions

View File

@ -33,6 +33,21 @@ typedef struct
fpregset_t fpregs;
} mcontext_t;
struct sigcontext {
unsigned long oldmask[1];
struct {
struct {
__psw_t psw;
unsigned long gprs[16];
unsigned acrs[16];
} regs;
struct {
unsigned fpc;
double fprs[16];
} fpregs;
} *sregs;
};
#else
typedef struct {