Browse Source

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.
Bobby Bingham 8 years ago
parent
commit
5555041668
1 changed files with 15 additions and 0 deletions
  1. 15 0
      arch/s390x/bits/signal.h

+ 15 - 0
arch/s390x/bits/signal.h

@@ -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 {