]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
m68k: switch to saner kernel_execve() semantics
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 11 Oct 2012 14:45:05 +0000 (10:45 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 14 Oct 2012 23:41:51 +0000 (19:41 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/m68k/Kconfig
arch/m68k/include/asm/unistd.h
arch/m68k/kernel/entry.S

index e7c161433eae320adde6503722d35652f9c3956d..953a7ba5d05025a776e5114b20acfbc56231bd3c 100644 (file)
@@ -16,6 +16,7 @@ config M68K
        select ARCH_WANT_IPC_PARSE_VERSION
        select ARCH_USES_GETTIMEOFFSET if MMU && !COLDFIRE
        select GENERIC_KERNEL_THREAD
+       select GENERIC_KERNEL_EXECVE
        select HAVE_MOD_ARCH_SPECIFIC
        select MODULES_USE_ELF_REL
        select MODULES_USE_ELF_RELA
index c702ad71679195f501f540b7ed5b32108f920813..508afdc1d43507b5d1d3e5f0eea9d9879fde0426 100644 (file)
 #define __ARCH_WANT_SYS_RT_SIGACTION
 #define __ARCH_WANT_SYS_RT_SIGSUSPEND
 #define __ARCH_WANT_SYS_EXECVE
-#define __ARCH_WANT_KERNEL_EXECVE
 
 /*
  * "Conditional" syscalls
index 946cb0187751caf241a0f2f4e1b5b9ebe3c535a0..45b2f293f8cf0deda26ea3d0fa72afa1e2c67459 100644 (file)
@@ -115,16 +115,9 @@ ENTRY(ret_from_kernel_thread)
        | a3 contains the kernel thread payload, d7 - its argument
        movel   %d1,%sp@-
        jsr     schedule_tail
-       GET_CURRENT(%d0)
        movel   %d7,(%sp)
        jsr     %a3@
        addql   #4,%sp
-       movel   %d0,(%sp)
-       jra     sys_exit
-
-ENTRY(ret_from_kernel_execve)
-       movel   4(%sp), %sp
-       GET_CURRENT(%d0)
        jra     ret_from_exception
 
 #if defined(CONFIG_COLDFIRE) || !defined(CONFIG_MMU)