MIPS: Switch over to generic sys_execve and kernel_execve.

This version contains a few updates by David Daney, in particular it's
now using __builtin_frame_address() instead of asm() which depending
on personal taste, is slightly more appealing.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Ralf Baechle
2012-10-09 21:16:07 +02:00
committed by Al Viro
parent 8f54bcacbc
commit baf9ff74ed
7 changed files with 19 additions and 76 deletions

View File

@@ -192,6 +192,15 @@ 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)
/*