blob: 23d6b8015c79ac0942e284ddcf9584a4dcb7a0a7 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 1995, 96, 97, 98, 99, 2003 by Ralf Baechle
7 * Copyright (C) 1999 Silicon Graphics, Inc.
8 */
9#ifndef _ASM_SIGNAL_H
10#define _ASM_SIGNAL_H
11
David Howells61730c52012-10-09 09:47:14 +010012#include <uapi/asm/signal.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Harvey Huntd1e63c92016-06-17 16:03:45 +010014#ifdef CONFIG_MIPS32_O32
Leonid Yegoshin79394692015-10-19 11:39:55 -070015extern struct mips_abi mips_abi_32;
Ralf Baechlee50c0a82005-05-31 11:49:19 +000016
Leonid Yegoshin79394692015-10-19 11:39:55 -070017#define sig_uses_siginfo(ka, abi) \
18 ((abi != &mips_abi_32) ? 1 : \
19 ((ka)->sa.sa_flags & SA_SIGINFO))
Ralf Baechlee50c0a82005-05-31 11:49:19 +000020#else
Leonid Yegoshin79394692015-10-19 11:39:55 -070021#define sig_uses_siginfo(ka, abi) \
Masahiro Yamada97f26452016-08-03 13:45:50 -070022 (IS_ENABLED(CONFIG_64BIT) ? 1 : \
23 (IS_ENABLED(CONFIG_TRAD_SIGNALS) ? \
Leonid Yegoshin79394692015-10-19 11:39:55 -070024 ((ka)->sa.sa_flags & SA_SIGINFO) : 1) )
Ralf Baechlee50c0a82005-05-31 11:49:19 +000025#endif
26
Linus Torvalds1da177e2005-04-16 15:20:36 -070027#include <asm/sigcontext.h>
Atsushi Nemoto9c6031c2006-02-19 23:46:44 +090028#include <asm/siginfo.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
David Howells2a148692013-03-19 14:00:53 +000030#define __ARCH_HAS_IRIX_SIGACTION
Al Viro574c4862012-11-25 22:24:19 -050031
Paul Burtond02a40a2015-07-27 12:58:18 -070032extern int protected_save_fp_context(void __user *sc);
33extern int protected_restore_fp_context(void __user *sc);
34
Linus Torvalds1da177e2005-04-16 15:20:36 -070035#endif /* _ASM_SIGNAL_H */