From: Al Viro Date: Sun, 3 Oct 2010 02:57:30 +0000 (-0400) Subject: m68k: Simplify the singlestepping handling in signals X-Git-Tag: v2.6.38-rc1~425^2~13 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e4930dbf17c1eba72631cd52a0c621da3d1a816;p=pandora-kernel.git m68k: Simplify the singlestepping handling in signals Instead of checking the return value of do_signal() we can just do the work (raise SIGTRAP and clear SR.T1) directly in handle_signal(), when setting the sigframe up. Simplifies the assembler glue and is closer to the way we do it on other targets. Note that do_delayed_trace does *not* disappear; it's still needed to deal with single-stepping through syscall, since 68040 doesn't raise the trace exception at all if the trap exception is pending. We hit it after returning from sys_...() if TIF_DELAYED_TRACE is set; all that has changed is that we don't reuse it for "single-step into the handler" codepath. As the result, do_signal() doesn't need to return anything anymore. Signed-off-by: Al Viro Signed-off-by: Geert Uytterhoeven --- Reading git-diff-tree failed