diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-05-29 23:13:55 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-05-29 23:13:55 +0200 |
commit | e94c805f0c234ef54609f23695b60add6b25ad40 (patch) | |
tree | 09e116c62b065316eb93070e78a1843d9055373a /arch/arm/kernel/entry-common.S | |
parent | ARM: neponset: make sure neponset_ncr_frob() is exported (diff) | |
parent | arm: don't open-code ptrace_report_syscall() (diff) | |
download | linux-e94c805f0c234ef54609f23695b60add6b25ad40.tar.xz linux-e94c805f0c234ef54609f23695b60add6b25ad40.zip |
Merge branch 'for-arm' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal.git into for-linus
Conflicts:
arch/arm/kernel/ptrace.c
Diffstat (limited to 'arch/arm/kernel/entry-common.S')
-rw-r--r-- | arch/arm/kernel/entry-common.S | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S index 7bd2d3cb8957..4afed88d250a 100644 --- a/arch/arm/kernel/entry-common.S +++ b/arch/arm/kernel/entry-common.S @@ -53,9 +53,13 @@ fast_work_pending: work_pending: tst r1, #_TIF_NEED_RESCHED bne work_resched - tst r1, #_TIF_SIGPENDING|_TIF_NOTIFY_RESUME - beq no_work_pending + /* + * TIF_SIGPENDING or TIF_NOTIFY_RESUME must've been set if we got here + */ + ldr r2, [sp, #S_PSR] mov r0, sp @ 'regs' + tst r2, #15 @ are we returning to user mode? + bne no_work_pending @ no? just leave, then... mov r2, why @ 'syscall' tst r1, #_TIF_SIGPENDING @ delivering a signal? movne why, #0 @ prevent further restarts |