From: Al Viro Date: Sun, 16 Sep 2012 16:06:34 +0000 (-0400) Subject: m68k: switch to generic sys_execve()/kernel_execve() X-Git-Tag: v3.7-rc1~43^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d878d6dacee2c862f02da20f7fa3e2c0e8820e71;p=pandora-kernel.git m68k: switch to generic sys_execve()/kernel_execve() The tricky part here is that task_pt_regs() on m68k works *only* for process inside do_signal(). However, we need something much simpler - pt_regs of a process inside do_signal() may be at different offsets from the stack bottom, depending on the way we'd entered the kernel, but for a task inside sys_execve() it *is* at constant offset. Moreover, for a kernel thread about to become a userland process the same location is also fine - setting sp to that will leave the kernel stack pointer at the very bottom of the kernel stack when we finally switch to userland. Signed-off-by: Al Viro --- Reading git-diff-tree failed