2 * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
9 #include "sysdep/ptrace.h"
10 #include "signal_user.h"
11 #include "user_util.h"
12 #include "kern_util.h"
16 void sig_handler_common_tt(int sig
, void *sc_ptr
)
18 struct sigcontext
*sc
= sc_ptr
;
19 struct tt_regs save_regs
, *r
;
20 struct signal_info
*info
;
21 int save_errno
= errno
, is_user
;
23 /* This is done because to allow SIGSEGV to be delivered inside a SEGV
24 * handler. This can happen in copy_user, and if SEGV is disabled,
25 * the process will die.
28 change_sig(SIGSEGV
, 1);
30 r
= &TASK_REGS(get_current())->tt
;
32 is_user
= user_context(SC_SP(sc
));
37 info
= &sig_info
[sig
];
38 if(!info
->is_irq
) unblock_signals();
40 (*info
->handler
)(sig
, (union uml_pt_regs
*) r
);
52 * Overrides for Emacs so that we follow Linus's tabbing style.
53 * Emacs will notice this stuff at the end of the file and automatically
54 * adjust the settings for this buffer only. This must remain at the end
56 * ---------------------------------------------------------------------------
58 * c-file-style: "linux"