2005-04-16 22:20:36 +00:00
|
|
|
/*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* Copyright (C) 1995, 96, 97, 98, 99, 2003 by Ralf Baechle
|
|
|
|
* Copyright (C) 1999 Silicon Graphics, Inc.
|
|
|
|
*/
|
|
|
|
#ifndef _ASM_SIGNAL_H
|
|
|
|
#define _ASM_SIGNAL_H
|
|
|
|
|
2012-10-09 08:47:14 +00:00
|
|
|
#include <uapi/asm/signal.h>
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2016-06-17 15:03:45 +00:00
|
|
|
#ifdef CONFIG_MIPS32_O32
|
2015-10-19 18:39:55 +00:00
|
|
|
extern struct mips_abi mips_abi_32;
|
2005-05-31 11:49:19 +00:00
|
|
|
|
2015-10-19 18:39:55 +00:00
|
|
|
#define sig_uses_siginfo(ka, abi) \
|
|
|
|
((abi != &mips_abi_32) ? 1 : \
|
|
|
|
((ka)->sa.sa_flags & SA_SIGINFO))
|
2005-05-31 11:49:19 +00:00
|
|
|
#else
|
2015-10-19 18:39:55 +00:00
|
|
|
#define sig_uses_siginfo(ka, abi) \
|
2016-08-03 20:45:50 +00:00
|
|
|
(IS_ENABLED(CONFIG_64BIT) ? 1 : \
|
|
|
|
(IS_ENABLED(CONFIG_TRAD_SIGNALS) ? \
|
2015-10-19 18:39:55 +00:00
|
|
|
((ka)->sa.sa_flags & SA_SIGINFO) : 1) )
|
2005-05-31 11:49:19 +00:00
|
|
|
#endif
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#include <asm/sigcontext.h>
|
2006-02-19 14:46:44 +00:00
|
|
|
#include <asm/siginfo.h>
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2013-03-19 14:00:53 +00:00
|
|
|
#define __ARCH_HAS_IRIX_SIGACTION
|
2012-11-26 03:24:19 +00:00
|
|
|
|
2015-07-27 19:58:18 +00:00
|
|
|
extern int protected_save_fp_context(void __user *sc);
|
|
|
|
extern int protected_restore_fp_context(void __user *sc);
|
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif /* _ASM_SIGNAL_H */
|