aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68knommu/platform
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2010-10-11 23:29:28 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2011-01-07 08:06:59 -0500
commitd1574df7e01d427c2ed80ada11433a72907ca472 (patch)
treea2009894be6fc3c429fbec70e15cf1e0d4485a5e /arch/m68knommu/platform
parent710e91e455caf5cfec02892d667b41f312ec166c (diff)
m68knommu: Handle multiple pending signals
we shouldn't bugger off to userland when there still are pending signals; among other things it makes e.g. SIGSEGV triggered by failure to build a sigframe to be delivered _now_ and not when we hit the next syscall or interrupt. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68knommu/platform')
-rw-r--r--arch/m68knommu/platform/68328/entry.S4
-rw-r--r--arch/m68knommu/platform/68360/entry.S4
-rw-r--r--arch/m68knommu/platform/coldfire/entry.S2
3 files changed, 5 insertions, 5 deletions
diff --git a/arch/m68knommu/platform/68328/entry.S b/arch/m68knommu/platform/68328/entry.S
index 6eeb635fab7e..240a7a6e25c8 100644
--- a/arch/m68knommu/platform/68328/entry.S
+++ b/arch/m68knommu/platform/68328/entry.S
@@ -106,6 +106,7 @@ Luser_return:
106 movel %sp,%d1 /* get thread_info pointer */ 106 movel %sp,%d1 /* get thread_info pointer */
107 andl #-THREAD_SIZE,%d1 107 andl #-THREAD_SIZE,%d1
108 movel %d1,%a2 108 movel %d1,%a2
1091:
109 move %a2@(TI_FLAGS),%d1 /* thread_info->flags */ 110 move %a2@(TI_FLAGS),%d1 /* thread_info->flags */
110 andl #_TIF_WORK_MASK,%d1 111 andl #_TIF_WORK_MASK,%d1
111 jne Lwork_to_do 112 jne Lwork_to_do
@@ -124,8 +125,7 @@ Lsignal_return:
124 addql #4,%sp 125 addql #4,%sp
125 RESTORE_SWITCH_STACK 126 RESTORE_SWITCH_STACK
126 addql #4,%sp 127 addql #4,%sp
127Lreturn: 128 jra 1b
128 RESTORE_ALL
129 129
130/* 130/*
131 * This is the main interrupt handler, responsible for calling process_int() 131 * This is the main interrupt handler, responsible for calling process_int()
diff --git a/arch/m68knommu/platform/68360/entry.S b/arch/m68knommu/platform/68360/entry.S
index 2a671da4af6f..8a28788c0eea 100644
--- a/arch/m68knommu/platform/68360/entry.S
+++ b/arch/m68knommu/platform/68360/entry.S
@@ -102,6 +102,7 @@ Luser_return:
102 movel %sp,%d1 /* get thread_info pointer */ 102 movel %sp,%d1 /* get thread_info pointer */
103 andl #-THREAD_SIZE,%d1 103 andl #-THREAD_SIZE,%d1
104 movel %d1,%a2 104 movel %d1,%a2
1051:
105 move %a2@(TI_FLAGS),%d1 /* thread_info->flags */ 106 move %a2@(TI_FLAGS),%d1 /* thread_info->flags */
106 andl #_TIF_WORK_MASK,%d1 107 andl #_TIF_WORK_MASK,%d1
107 jne Lwork_to_do 108 jne Lwork_to_do
@@ -120,8 +121,7 @@ Lsignal_return:
120 addql #4,%sp 121 addql #4,%sp
121 RESTORE_SWITCH_STACK 122 RESTORE_SWITCH_STACK
122 addql #4,%sp 123 addql #4,%sp
123Lreturn: 124 jra 1b
124 RESTORE_ALL
125 125
126/* 126/*
127 * This is the main interrupt handler, responsible for calling do_IRQ() 127 * This is the main interrupt handler, responsible for calling do_IRQ()
diff --git a/arch/m68knommu/platform/coldfire/entry.S b/arch/m68knommu/platform/coldfire/entry.S
index ed2878829dbd..e1debc8285ef 100644
--- a/arch/m68knommu/platform/coldfire/entry.S
+++ b/arch/m68knommu/platform/coldfire/entry.S
@@ -171,7 +171,7 @@ Lsignal_return:
171 addql #4,%sp 171 addql #4,%sp
172 RESTORE_SWITCH_STACK 172 RESTORE_SWITCH_STACK
173 addql #4,%sp 173 addql #4,%sp
174 jmp Lreturn 174 jmp Luser_return
175 175
176/* 176/*
177 * This is the generic interrupt handler (for all hardware interrupt 177 * This is the generic interrupt handler (for all hardware interrupt