David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 1 | /* MN10300 Signal definitions |
| 2 | * |
| 3 | * Copyright (C) 2007 Matsushita Electric Industrial Co., Ltd. |
| 4 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public Licence |
| 8 | * as published by the Free Software Foundation; either version |
| 9 | * 2 of the Licence, or (at your option) any later version. |
| 10 | */ |
| 11 | #ifndef _ASM_SIGNAL_H |
| 12 | #define _ASM_SIGNAL_H |
| 13 | |
David Howells | 3b2267e | 2012-10-10 12:10:10 +0100 | [diff] [blame] | 14 | #include <uapi/asm/signal.h> |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 15 | |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 16 | /* Most things should be clean enough to redefine this at will, if care |
| 17 | is taken to make libc match. */ |
| 18 | |
| 19 | #define _NSIG 64 |
| 20 | #define _NSIG_BPW 32 |
| 21 | #define _NSIG_WORDS (_NSIG / _NSIG_BPW) |
| 22 | |
| 23 | typedef unsigned long old_sigset_t; /* at least 32 bits */ |
| 24 | |
| 25 | typedef struct { |
| 26 | unsigned long sig[_NSIG_WORDS]; |
| 27 | } sigset_t; |
| 28 | |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 29 | struct old_sigaction { |
| 30 | __sighandler_t sa_handler; |
| 31 | old_sigset_t sa_mask; |
| 32 | unsigned long sa_flags; |
| 33 | __sigrestore_t sa_restorer; |
| 34 | }; |
| 35 | |
| 36 | struct sigaction { |
| 37 | __sighandler_t sa_handler; |
| 38 | unsigned long sa_flags; |
| 39 | __sigrestore_t sa_restorer; |
| 40 | sigset_t sa_mask; /* mask last for extensibility */ |
| 41 | }; |
| 42 | |
| 43 | struct k_sigaction { |
| 44 | struct sigaction sa; |
| 45 | }; |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 46 | #include <asm/sigcontext.h> |
| 47 | |
| 48 | |
| 49 | struct pt_regs; |
| 50 | #define ptrace_signal_deliver(regs, cookie) do { } while (0) |
| 51 | |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 52 | #endif /* _ASM_SIGNAL_H */ |