diff options
Diffstat (limited to 'arch/um/kernel/process.c')
-rw-r--r-- | arch/um/kernel/process.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index 2b73dedb44ca..3a2235e0abc3 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/seq_file.h> | 18 | #include <linux/seq_file.h> |
19 | #include <linux/tick.h> | 19 | #include <linux/tick.h> |
20 | #include <linux/threads.h> | 20 | #include <linux/threads.h> |
21 | #include <linux/tracehook.h> | ||
21 | #include <asm/current.h> | 22 | #include <asm/current.h> |
22 | #include <asm/pgtable.h> | 23 | #include <asm/pgtable.h> |
23 | #include <asm/mmu_context.h> | 24 | #include <asm/mmu_context.h> |
@@ -114,8 +115,13 @@ void interrupt_end(void) | |||
114 | { | 115 | { |
115 | if (need_resched()) | 116 | if (need_resched()) |
116 | schedule(); | 117 | schedule(); |
117 | if (test_tsk_thread_flag(current, TIF_SIGPENDING)) | 118 | if (test_thread_flag(TIF_SIGPENDING)) |
118 | do_signal(); | 119 | do_signal(); |
120 | if (test_and_clear_thread_flag(TIF_NOTIFY_RESUME)) { | ||
121 | tracehook_notify_resume(¤t->thread.regs); | ||
122 | if (current->replacement_session_keyring) | ||
123 | key_replace_session_keyring(); | ||
124 | } | ||
119 | } | 125 | } |
120 | 126 | ||
121 | void exit_thread(void) | 127 | void exit_thread(void) |
@@ -190,7 +196,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp, | |||
190 | if (current->thread.forking) { | 196 | if (current->thread.forking) { |
191 | memcpy(&p->thread.regs.regs, ®s->regs, | 197 | memcpy(&p->thread.regs.regs, ®s->regs, |
192 | sizeof(p->thread.regs.regs)); | 198 | sizeof(p->thread.regs.regs)); |
193 | REGS_SET_SYSCALL_RETURN(p->thread.regs.regs.gp, 0); | 199 | UPT_SET_SYSCALL_RETURN(&p->thread.regs.regs, 0); |
194 | if (sp != 0) | 200 | if (sp != 0) |
195 | REGS_SP(p->thread.regs.regs.gp) = sp; | 201 | REGS_SP(p->thread.regs.regs.gp) = sp; |
196 | 202 | ||