2005-04-17 05:20:36 +07: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 15:47:14 +07:00
|
|
|
#include <uapi/asm/signal.h>
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2016-06-17 22:03:45 +07:00
|
|
|
#ifdef CONFIG_MIPS32_O32
|
2015-10-20 01:39:55 +07:00
|
|
|
extern struct mips_abi mips_abi_32;
|
2005-05-31 18:49:19 +07:00
|
|
|
|
2015-10-20 01:39:55 +07:00
|
|
|
#define sig_uses_siginfo(ka, abi) \
|
|
|
|
((abi != &mips_abi_32) ? 1 : \
|
|
|
|
((ka)->sa.sa_flags & SA_SIGINFO))
|
2005-05-31 18:49:19 +07:00
|
|
|
#else
|
2015-10-20 01:39:55 +07:00
|
|
|
#define sig_uses_siginfo(ka, abi) \
|
2016-08-04 03:45:50 +07:00
|
|
|
(IS_ENABLED(CONFIG_64BIT) ? 1 : \
|
|
|
|
(IS_ENABLED(CONFIG_TRAD_SIGNALS) ? \
|
2015-10-20 01:39:55 +07:00
|
|
|
((ka)->sa.sa_flags & SA_SIGINFO) : 1) )
|
2005-05-31 18:49:19 +07:00
|
|
|
#endif
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
#include <asm/sigcontext.h>
|
2006-02-19 21:46:44 +07:00
|
|
|
#include <asm/siginfo.h>
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2013-03-19 21:00:53 +07:00
|
|
|
#define __ARCH_HAS_IRIX_SIGACTION
|
2012-11-26 10:24:19 +07:00
|
|
|
|
2015-07-28 02:58:18 +07:00
|
|
|
extern int protected_save_fp_context(void __user *sc);
|
|
|
|
extern int protected_restore_fp_context(void __user *sc);
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
#endif /* _ASM_SIGNAL_H */
|