summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2012-10-25 11:10:51 +0400
committerChris Zankel <chris@zankel.net>2012-10-25 15:00:36 -0700
commitf0a1bf0859ffa059f9009d6a17e8d46241fb2161 (patch)
tree9ac202198fd961e3bc7b54bcc9e5501b17bb74ac /arch/xtensa/kernel
parent3306a72669a2af23b324540b08e68e82ac5b7dab (diff)
downloadblackbird-op-linux-f0a1bf0859ffa059f9009d6a17e8d46241fb2161.tar.gz
blackbird-op-linux-f0a1bf0859ffa059f9009d6a17e8d46241fb2161.zip
xtensa: switch to generic kernel_execve()
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/kernel')
-rw-r--r--arch/xtensa/kernel/entry.S18
1 files changed, 1 insertions, 17 deletions
diff --git a/arch/xtensa/kernel/entry.S b/arch/xtensa/kernel/entry.S
index d4ec1381aebc..90bfc1dbc13d 100644
--- a/arch/xtensa/kernel/entry.S
+++ b/arch/xtensa/kernel/entry.S
@@ -1833,22 +1833,6 @@ ENTRY(system_call)
/*
- * Do a system call from kernel instead of calling sys_execve, so we end up
- * with proper pt_regs.
- *
- * int kernel_execve(const char *fname, char *const argv[], charg *const envp[])
- * a2 a2 a3 a4
- */
-
-ENTRY(kernel_execve)
- entry a1, 16
- mov a6, a2 # arg0 is in a6
- movi a2, __NR_execve
- syscall
-
- retw
-
-/*
* Task switch.
*
* struct task* _switch_to (struct task* prev, struct task* next)
@@ -1940,6 +1924,6 @@ ENTRY(ret_from_kernel_thread)
call4 schedule_tail
mov a6, a3
callx4 a2
- call4 do_exit
+ j common_exception_return
ENDPROC(ret_from_kernel_thread)
OpenPOWER on IntegriCloud