summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/entry.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/entry.S')
-rw-r--r--arch/mips/kernel/entry.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S
index aab6997b8f47..5dcb5fbbbd53 100644
--- a/arch/mips/kernel/entry.S
+++ b/arch/mips/kernel/entry.S
@@ -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)
/*