Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * Copyright (C) 1995, 96, 97, 98, 99, 2003 by Ralf Baechle
0007  * Copyright (C) 1999 Silicon Graphics, Inc.
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 /* _ASM_SIGNAL_H */