Dmitry V. Levin | 74219ea | 2015-03-06 01:47:18 +0000 | [diff] [blame] | 1 | #include "defs.h" |
| 2 | #include "regs.h" |
| 3 | #include "ptrace.h" |
| 4 | |
| 5 | #if defined HAVE_ASM_SIGCONTEXT_H && !defined HAVE_STRUCT_SIGCONTEXT |
| 6 | # include <asm/sigcontext.h> |
| 7 | #endif |
| 8 | |
| 9 | #ifndef NSIG |
| 10 | # warning NSIG is not defined, using 32 |
| 11 | # define NSIG 32 |
| 12 | #elif NSIG < 32 |
| 13 | # error NSIG < 32 |
| 14 | #endif |
| 15 | |
Dmitry V. Levin | a0bd374 | 2015-04-07 01:36:50 +0000 | [diff] [blame] | 16 | SYS_FUNC(sigreturn) |
Dmitry V. Levin | 74219ea | 2015-03-06 01:47:18 +0000 | [diff] [blame] | 17 | { |
Dmitry V. Levin | 74219ea | 2015-03-06 01:47:18 +0000 | [diff] [blame] | 18 | if (entering(tcp)) { |
Dmitry V. Levin | a3c4835 | 2015-03-23 21:16:07 +0000 | [diff] [blame] | 19 | #include "arch_sigreturn.c" |
Dmitry V. Levin | 74219ea | 2015-03-06 01:47:18 +0000 | [diff] [blame] | 20 | } |
Dmitry V. Levin | 74219ea | 2015-03-06 01:47:18 +0000 | [diff] [blame] | 21 | return 0; |
| 22 | } |