s390x: provide sigcontext struct definition
authorBobby Bingham <koorogi@koorogi.info>
Sun, 26 Mar 2017 19:50:37 +0000 (14:50 -0500)
committerRich Felker <dalias@aerifal.cx>
Sat, 22 Apr 2017 23:26:05 +0000 (19:26 -0400)
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.

arch/s390x/bits/signal.h

index c866583227c8631a83f724059110d423695a3ffa..e5aca4bac2db424553a5f5e7b0785b45cc0f7047 100644 (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 {