Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

openrisc: add support for TIF_NOTIFY_SIGNAL

Wire up TIF_NOTIFY_SIGNAL handling for openrisc.

Cc: openrisc@lists.librecores.org
Acked-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

+3 -1
+2
arch/openrisc/include/asm/thread_info.h
··· 98 98 #define TIF_SINGLESTEP 4 /* restore singlestep on return to user 99 99 * mode 100 100 */ 101 + #define TIF_NOTIFY_SIGNAL 5 /* signal notifications exist */ 101 102 #define TIF_SYSCALL_TRACEPOINT 8 /* for ftrace syscall instrumentation */ 102 103 #define TIF_RESTORE_SIGMASK 9 103 104 #define TIF_POLLING_NRFLAG 16 /* true if poll_idle() is polling * TIF_NEED_RESCHED ··· 110 109 #define _TIF_SIGPENDING (1<<TIF_SIGPENDING) 111 110 #define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED) 112 111 #define _TIF_SINGLESTEP (1<<TIF_SINGLESTEP) 112 + #define _TIF_NOTIFY_SIGNAL (1<<TIF_NOTIFY_SIGNAL) 113 113 #define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG) 114 114 115 115
+1 -1
arch/openrisc/kernel/signal.c
··· 299 299 if (unlikely(!user_mode(regs))) 300 300 return 0; 301 301 local_irq_enable(); 302 - if (thread_flags & _TIF_SIGPENDING) { 302 + if (thread_flags & (_TIF_SIGPENDING|_TIF_NOTIFY_SIGNAL)) { 303 303 int restart = do_signal(regs, syscall); 304 304 if (unlikely(restart)) { 305 305 /*