1384740dcSRalf Baechle /* 2384740dcSRalf Baechle * This file is subject to the terms and conditions of the GNU General Public 3384740dcSRalf Baechle * License. See the file "COPYING" in the main directory of this archive 4384740dcSRalf Baechle * for more details. 5384740dcSRalf Baechle * 6384740dcSRalf Baechle * Copyright (C) 1995, 96, 97, 98, 99, 2003 by Ralf Baechle 7384740dcSRalf Baechle * Copyright (C) 1999 Silicon Graphics, Inc. 8384740dcSRalf Baechle */ 9384740dcSRalf Baechle #ifndef _ASM_SIGNAL_H 10384740dcSRalf Baechle #define _ASM_SIGNAL_H 11384740dcSRalf Baechle 1261730c53SDavid Howells #include <uapi/asm/signal.h> 13384740dcSRalf Baechle 14d1e63c94SHarvey Hunt #ifdef CONFIG_MIPS32_O32 157939469dSLeonid Yegoshin extern struct mips_abi mips_abi_32; 16384740dcSRalf Baechle 177939469dSLeonid Yegoshin #define sig_uses_siginfo(ka, abi) \ 187939469dSLeonid Yegoshin ((abi != &mips_abi_32) ? 1 : \ 197939469dSLeonid Yegoshin ((ka)->sa.sa_flags & SA_SIGINFO)) 20384740dcSRalf Baechle #else 217939469dSLeonid Yegoshin #define sig_uses_siginfo(ka, abi) \ 2297f2645fSMasahiro Yamada (IS_ENABLED(CONFIG_64BIT) ? 1 : \ 2397f2645fSMasahiro Yamada (IS_ENABLED(CONFIG_TRAD_SIGNALS) ? \ 247939469dSLeonid Yegoshin ((ka)->sa.sa_flags & SA_SIGINFO) : 1) ) 25384740dcSRalf Baechle #endif 26384740dcSRalf Baechle 27384740dcSRalf Baechle #include <asm/sigcontext.h> 28384740dcSRalf Baechle #include <asm/siginfo.h> 29384740dcSRalf Baechle 302a148698SDavid Howells #define __ARCH_HAS_IRIX_SIGACTION 31574c4866SAl Viro 32d02a40afSPaul Burton extern int protected_save_fp_context(void __user *sc); 33d02a40afSPaul Burton extern int protected_restore_fp_context(void __user *sc); 34*7dc5b892SArnd Bergmann void do_notify_resume(struct pt_regs *regs, void *unused, __u32 thread_info_flags); 35d02a40afSPaul Burton 36384740dcSRalf Baechle #endif /* _ASM_SIGNAL_H */ 37