]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arm: introduce ret_from_kernel_execve(), switch to generic kernel_execve()
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 2 Aug 2012 07:46:39 +0000 (11:46 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 7 Sep 2012 17:54:31 +0000 (13:54 -0400)
commitc4c29b2a764a07c0b1895692488ae7fea392f8b4
tree840d8a2534609f9f9cd03b0761ed02d92994c79f
parentb2d5514bc055ccd4a0695a694d24d8797059c361
arm: introduce ret_from_kernel_execve(), switch to generic kernel_execve()

ret_from_kernel_execve() is the asm tail of kernel_execve(), essentially;
the rest became shiny new generic implementation, right in fs/exec.c.
An architecture can provide ret_from_kernel_execve() and define
__ARCH_WANT_KERNEL_EXECVE; then it'll get the generic one.

Another new helper: current_pt_regs().  Default is task_pt_regs(current),
and it's perfectly fine to just leave it as is.  However, an architecture
might choose to provide an optimized variant in its ptrace.h

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/arm/include/asm/unistd.h
arch/arm/kernel/entry-common.S
arch/arm/kernel/sys_arm.c
fs/exec.c
include/linux/binfmts.h
include/linux/ptrace.h