summaryrefslogtreecommitdiff
path: root/arch/mips/kernel/entry.S
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-10-11 16:01:20 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-10-15 16:27:52 -0400
commit9b0e5d42d9a66621fce83a22987d33325debb588 (patch)
tree33d3f14e6f115bcc013b4673d62c715e79e5b945 /arch/mips/kernel/entry.S
parentbaf9ff74eda9f0efcc8a68e8a9c9d183be13a810 (diff)
mips: switch to saner kernel_execve() semantics
Acked-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/mips/kernel/entry.S')
-rw-r--r--arch/mips/kernel/entry.S12
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S
index 5dcb5fbbbd53..3320cb4ac1d4 100644
--- a/arch/mips/kernel/entry.S
+++ b/arch/mips/kernel/entry.S
@@ -69,8 +69,7 @@ FEXPORT(ret_from_kernel_thread)
jal schedule_tail # a0 = struct task_struct *prev
move a0, s1
jal s0
- li a0, 0
- j sys_exit
+ j syscall_exit
FEXPORT(ret_from_fork)
jal schedule_tail # a0 = struct task_struct *prev
@@ -192,15 +191,6 @@ syscall_exit_work:
jal syscall_trace_leave
b resume_userspace
-LEAF(ret_from_kernel_execve)
- move sp, a0
- ori $28, sp, _THREAD_SIZE - 1
- xori $28, $28, _THREAD_SIZE - 1
- li v0, 0
- li a3, 0
- j syscall_exit_partial
- END(ret_from_kernel_execve)
-
#if defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_MIPS_MT)
/*