diff options
author | David Howells <dhowells@redhat.com> | 2009-06-11 08:05:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-11 12:01:26 -0400 |
commit | b7bab880c795ec620041ef0295cbbbc5a726f414 (patch) | |
tree | 253aa413356df7b444340114643c4dcdd122ffb5 /arch/frv/kernel | |
parent | aa1913c0214a53568731617c0afbbfa3f59513fb (diff) |
FRV: Implement TIF_NOTIFY_RESUME
Implement the TIF_NOTIFY_RESUME thread flag, making it call do_notify_resume()
which then clears it. This will be made use of later by tracehooks in the
new-style ptrace implementation
Also discard TIF_IRET as that's not used by FRV.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/frv/kernel')
-rw-r--r-- | arch/frv/kernel/signal.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/frv/kernel/signal.c b/arch/frv/kernel/signal.c index 3bdb368292a8..7ae290a161de 100644 --- a/arch/frv/kernel/signal.c +++ b/arch/frv/kernel/signal.c | |||
@@ -564,4 +564,9 @@ asmlinkage void do_notify_resume(__u32 thread_info_flags) | |||
564 | if (thread_info_flags & (_TIF_SIGPENDING | _TIF_RESTORE_SIGMASK)) | 564 | if (thread_info_flags & (_TIF_SIGPENDING | _TIF_RESTORE_SIGMASK)) |
565 | do_signal(); | 565 | do_signal(); |
566 | 566 | ||
567 | /* deal with notification on about to resume userspace execution */ | ||
568 | if (thread_info_flags & _TIF_NOTIFY_RESUME) { | ||
569 | clear_thread_flag(TIF_NOTIFY_RESUME); | ||
570 | } | ||
571 | |||
567 | } /* end do_notify_resume() */ | 572 | } /* end do_notify_resume() */ |