summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/cell/spufs
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2006-11-27 18:18:53 (GMT)
committerPaul Mackerras <paulus@samba.org>2006-12-04 09:41:09 (GMT)
commitc2b2226c7e46549c26fd5f5f40122536bc91ba0d (patch)
tree1161bc17586c5b5f85d2cc7cbae69cb8d29775fd /arch/powerpc/platforms/cell/spufs
parentbd2e5f829e772787ea4d986d72ddf57f50878649 (diff)
downloadlinux-fsl-qoriq-c2b2226c7e46549c26fd5f5f40122536bc91ba0d.tar.xz
[POWERPC] spufs: always send sigtrap on breakpoint
Currently, we only send a sigtrap if the current task is being ptraced. This is somewhat inconsistant, and it breaks utrace support in fedora. Removing the check should do the right thing in all cases. Cc: Ulrich Weigand <ulrich.weigand@de.ibm.com> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs')
-rw-r--r--arch/powerpc/platforms/cell/spufs/run.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/run.c b/arch/powerpc/platforms/cell/spufs/run.c
index 1be4e33..1acc2ff 100644
--- a/arch/powerpc/platforms/cell/spufs/run.c
+++ b/arch/powerpc/platforms/cell/spufs/run.c
@@ -350,12 +350,10 @@ out2:
(status >> SPU_STOP_STATUS_SHIFT != 0x2104)))))
ret = status;
- if (unlikely(current->ptrace & PT_PTRACED)) {
- if ((status & SPU_STATUS_STOPPED_BY_STOP)
- && (status >> SPU_STOP_STATUS_SHIFT) == 0x3fff) {
- force_sig(SIGTRAP, current);
- ret = -ERESTARTSYS;
- }
+ if ((status & SPU_STATUS_STOPPED_BY_STOP)
+ && (status >> SPU_STOP_STATUS_SHIFT) == 0x3fff) {
+ force_sig(SIGTRAP, current);
+ ret = -ERESTARTSYS;
}
out: