diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-12-23 03:13:40 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-02-03 18:32:24 -0500 |
commit | ea536ad4f231a0055792d9b144715605cbd670c1 (patch) | |
tree | 31c7cd55f356cc80ba28b6e989e99af27fd2c567 /arch/mips/include/asm/compat.h | |
parent | c6489c147de592af4d0d1c5263e7b4f0e8e7d100 (diff) |
mips: switch to generic sigaltstack
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/mips/include/asm/compat.h')
-rw-r--r-- | arch/mips/include/asm/compat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/include/asm/compat.h b/arch/mips/include/asm/compat.h index 3c5d1464b7bd..ebaae9649f8a 100644 --- a/arch/mips/include/asm/compat.h +++ b/arch/mips/include/asm/compat.h | |||
@@ -288,6 +288,14 @@ struct compat_shmid64_ds { | |||
288 | compat_ulong_t __unused2; | 288 | compat_ulong_t __unused2; |
289 | }; | 289 | }; |
290 | 290 | ||
291 | /* MIPS has unusual order of fields in stack_t */ | ||
292 | typedef struct compat_sigaltstack { | ||
293 | compat_uptr_t ss_sp; | ||
294 | compat_size_t ss_size; | ||
295 | int ss_flags; | ||
296 | } compat_stack_t; | ||
297 | #define compat_sigaltstack compat_sigaltstack | ||
298 | |||
291 | static inline int is_compat_task(void) | 299 | static inline int is_compat_task(void) |
292 | { | 300 | { |
293 | return test_thread_flag(TIF_32BIT_ADDR); | 301 | return test_thread_flag(TIF_32BIT_ADDR); |