0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef _ASM_SIGNAL_H
0010 #define _ASM_SIGNAL_H
0011
0012 #include <uapi/asm/signal.h>
0013
0014 #ifdef CONFIG_MIPS32_O32
0015 extern struct mips_abi mips_abi_32;
0016
0017 #define sig_uses_siginfo(ka, abi) \
0018 ((abi != &mips_abi_32) ? 1 : \
0019 ((ka)->sa.sa_flags & SA_SIGINFO))
0020 #else
0021 #define sig_uses_siginfo(ka, abi) \
0022 (IS_ENABLED(CONFIG_64BIT) ? 1 : \
0023 (IS_ENABLED(CONFIG_TRAD_SIGNALS) ? \
0024 ((ka)->sa.sa_flags & SA_SIGINFO) : 1) )
0025 #endif
0026
0027 #include <asm/sigcontext.h>
0028 #include <asm/siginfo.h>
0029
0030 #define __ARCH_HAS_IRIX_SIGACTION
0031
0032 extern int protected_save_fp_context(void __user *sc);
0033 extern int protected_restore_fp_context(void __user *sc);
0034
0035 #endif