aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/os-Linux/skas/trap.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/os-Linux/skas/trap.c')
-rw-r--r--arch/um/os-Linux/skas/trap.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/arch/um/os-Linux/skas/trap.c b/arch/um/os-Linux/skas/trap.c
index 3b1b9244f468..a19a74f08fa9 100644
--- a/arch/um/os-Linux/skas/trap.c
+++ b/arch/um/os-Linux/skas/trap.c
@@ -3,22 +3,26 @@
3 * Licensed under the GPL 3 * Licensed under the GPL
4 */ 4 */
5 5
6#if 0
7#include "kern_util.h"
8#include "skas.h"
9#include "ptrace_user.h"
10#include "sysdep/ptrace_user.h"
11#endif
12
13#include <errno.h> 6#include <errno.h>
14#include <signal.h> 7#include <signal.h>
15#include "sysdep/ptrace.h" 8#include "sysdep/ptrace.h"
16#include "kern_constants.h" 9#include "kern_constants.h"
17#include "as-layout.h" 10#include "as-layout.h"
11#include "kern_util.h"
18#include "os.h" 12#include "os.h"
19#include "sigcontext.h" 13#include "sigcontext.h"
20#include "task.h" 14#include "task.h"
21 15
16void (*sig_info[NSIG])(int, struct uml_pt_regs *) = {
17 [SIGTRAP] = relay_signal,
18 [SIGFPE] = relay_signal,
19 [SIGILL] = relay_signal,
20 [SIGWINCH] = winch,
21 [SIGBUS] = bus_handler,
22 [SIGSEGV] = segv_handler,
23 [SIGIO] = sigio_handler,
24 [SIGVTALRM] = timer_handler };
25
22static struct uml_pt_regs ksig_regs[UM_NR_CPUS]; 26static struct uml_pt_regs ksig_regs[UM_NR_CPUS];
23 27
24void sig_handler_common_skas(int sig, void *sc_ptr) 28void sig_handler_common_skas(int sig, void *sc_ptr)