diff options
Diffstat (limited to 'arch/um/os-Linux/signal.c')
-rw-r--r-- | arch/um/os-Linux/signal.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/um/os-Linux/signal.c b/arch/um/os-Linux/signal.c index 48d493415301..420ee86d0d1a 100644 --- a/arch/um/os-Linux/signal.c +++ b/arch/um/os-Linux/signal.c | |||
@@ -61,15 +61,19 @@ void sig_handler(int sig, struct sigcontext *sc) | |||
61 | 61 | ||
62 | static void real_alarm_handler(int sig, struct sigcontext *sc) | 62 | static void real_alarm_handler(int sig, struct sigcontext *sc) |
63 | { | 63 | { |
64 | union uml_pt_regs regs; | ||
65 | |||
64 | if(sig == SIGALRM) | 66 | if(sig == SIGALRM) |
65 | switch_timers(0); | 67 | switch_timers(0); |
66 | 68 | ||
67 | CHOOSE_MODE_PROC(sig_handler_common_tt, sig_handler_common_skas, | 69 | if(sc != NULL) |
68 | sig, sc); | 70 | copy_sc(®s, sc); |
71 | regs.skas.is_user = 0; | ||
72 | unblock_signals(); | ||
73 | timer_handler(sig, ®s); | ||
69 | 74 | ||
70 | if(sig == SIGALRM) | 75 | if(sig == SIGALRM) |
71 | switch_timers(1); | 76 | switch_timers(1); |
72 | |||
73 | } | 77 | } |
74 | 78 | ||
75 | void alarm_handler(int sig, struct sigcontext *sc) | 79 | void alarm_handler(int sig, struct sigcontext *sc) |