Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 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 Howells | 61730c5 | 2012-10-09 09:47:14 +0100 | [diff] [blame] | 12 | #include <uapi/asm/signal.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Harvey Hunt | d1e63c9 | 2016-06-17 16:03:45 +0100 | [diff] [blame] | 14 | #ifdef CONFIG_MIPS32_O32 |
Leonid Yegoshin | 7939469 | 2015-10-19 11:39:55 -0700 | [diff] [blame] | 15 | extern struct mips_abi mips_abi_32; |
Ralf Baechle | e50c0a8 | 2005-05-31 11:49:19 +0000 | [diff] [blame] | 16 | |
Leonid Yegoshin | 7939469 | 2015-10-19 11:39:55 -0700 | [diff] [blame] | 17 | #define sig_uses_siginfo(ka, abi) \ |
| 18 | ((abi != &mips_abi_32) ? 1 : \ |
| 19 | ((ka)->sa.sa_flags & SA_SIGINFO)) |
Ralf Baechle | e50c0a8 | 2005-05-31 11:49:19 +0000 | [diff] [blame] | 20 | #else |
Leonid Yegoshin | 7939469 | 2015-10-19 11:39:55 -0700 | [diff] [blame] | 21 | #define sig_uses_siginfo(ka, abi) \ |
Masahiro Yamada | 97f2645 | 2016-08-03 13:45:50 -0700 | [diff] [blame] | 22 | (IS_ENABLED(CONFIG_64BIT) ? 1 : \ |
| 23 | (IS_ENABLED(CONFIG_TRAD_SIGNALS) ? \ |
Leonid Yegoshin | 7939469 | 2015-10-19 11:39:55 -0700 | [diff] [blame] | 24 | ((ka)->sa.sa_flags & SA_SIGINFO) : 1) ) |
Ralf Baechle | e50c0a8 | 2005-05-31 11:49:19 +0000 | [diff] [blame] | 25 | #endif |
| 26 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | #include <asm/sigcontext.h> |
Atsushi Nemoto | 9c6031c | 2006-02-19 23:46:44 +0900 | [diff] [blame] | 28 | #include <asm/siginfo.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | |
David Howells | 2a14869 | 2013-03-19 14:00:53 +0000 | [diff] [blame] | 30 | #define __ARCH_HAS_IRIX_SIGACTION |
Al Viro | 574c486 | 2012-11-25 22:24:19 -0500 | [diff] [blame] | 31 | |
Paul Burton | d02a40a | 2015-07-27 12:58:18 -0700 | [diff] [blame] | 32 | extern int protected_save_fp_context(void __user *sc); |
| 33 | extern int protected_restore_fp_context(void __user *sc); |
| 34 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | #endif /* _ASM_SIGNAL_H */ |