From: Masato Noguchi Date: Mon, 20 Nov 2006 17:45:04 +0000 (+0100) Subject: [POWERPC] spufs: Fix missing stop-and-signal X-Git-Tag: v2.6.20-rc1~34^2~40^2~8^2~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ebb2477f9a61b436dd22b75189857df1a77e585;p=pandora-kernel.git [POWERPC] spufs: Fix missing stop-and-signal When there is pending signals, current spufs_run_spu() always returns -ERESTARTSYS and it is called again automatically. But, if spe already stopped by stop-and-signal or halt instruction, returning -ERESTARTSYS makes stop-and-signal/halt lost and spu run over the end-point. For your convenience, I attached a sample code to restage this bug. If there is no bug, printed NPC will be 0x4000. Signed-off-by: Masato Noguchi Signed-off-by: Arnd Bergmann Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed