Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_CRIS_SIGNAL_H |
| 2 | #define _ASM_CRIS_SIGNAL_H |
| 3 | |
David Howells | e717aba | 2012-10-09 09:46:45 +0100 | [diff] [blame^] | 4 | #include <uapi/asm/signal.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | /* Most things should be clean enough to redefine this at will, if care |
| 7 | is taken to make libc match. */ |
| 8 | |
| 9 | #define _NSIG 64 |
| 10 | #define _NSIG_BPW 32 |
| 11 | #define _NSIG_WORDS (_NSIG / _NSIG_BPW) |
| 12 | |
| 13 | typedef unsigned long old_sigset_t; /* at least 32 bits */ |
| 14 | |
| 15 | typedef struct { |
| 16 | unsigned long sig[_NSIG_WORDS]; |
| 17 | } sigset_t; |
| 18 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | struct old_sigaction { |
| 20 | __sighandler_t sa_handler; |
| 21 | old_sigset_t sa_mask; |
| 22 | unsigned long sa_flags; |
| 23 | void (*sa_restorer)(void); |
| 24 | }; |
| 25 | |
| 26 | struct sigaction { |
| 27 | __sighandler_t sa_handler; |
| 28 | unsigned long sa_flags; |
| 29 | void (*sa_restorer)(void); |
| 30 | sigset_t sa_mask; /* mask last for extensibility */ |
| 31 | }; |
| 32 | |
| 33 | struct k_sigaction { |
| 34 | struct sigaction sa; |
| 35 | }; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | #include <asm/sigcontext.h> |
| 37 | |
| 38 | /* here we could define asm-optimized sigaddset, sigdelset etc. operations. |
| 39 | * if we don't, generic ones are used from linux/signal.h |
| 40 | */ |
| 41 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) |
| 42 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | #endif |