Skip to content

Commit 51d139b

Browse files
committed
MIPS: Enable entries for SIGSYS in struct siginfo.
This is necessary because MIPS doesn't use HAVE_ARCH_SIGINFO_T for historical reasons. Signed-off-by: Ralf Baechle <[email protected]>
1 parent 03b94e2 commit 51d139b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arch/mips/include/uapi/asm/siginfo.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ struct siginfo;
3333
#error _MIPS_SZLONG neither 32 nor 64
3434
#endif
3535

36+
#define __ARCH_SIGSYS
37+
3638
#include <asm-generic/siginfo.h>
3739

3840
typedef struct siginfo {
@@ -97,6 +99,13 @@ typedef struct siginfo {
9799
__ARCH_SI_BAND_T _band; /* POLL_IN, POLL_OUT, POLL_MSG */
98100
int _fd;
99101
} _sigpoll;
102+
103+
/* SIGSYS */
104+
struct {
105+
void __user *_call_addr; /* calling user insn */
106+
int _syscall; /* triggering system call number */
107+
unsigned int _arch; /* AUDIT_ARCH_* of syscall */
108+
} _sigsys;
100109
} _sifields;
101110
} siginfo_t;
102111

0 commit comments

Comments
 (0)