summaryrefslogtreecommitdiff
path: root/arch/score/kernel/entry.S
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-10-15 15:26:11 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-10-15 16:12:06 -0400
commit1856ab6db1296c9c31ad58263d49ee9b75568ddb (patch)
tree7e41497f50a2951381c9931da8c9c187f2acea57 /arch/score/kernel/entry.S
parentddffeb8c4d0331609ef2581d84de4d763607bd37 (diff)
score: switch to generic kernel_thread()/kernel_execve()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/score/kernel/entry.S')
-rw-r--r--arch/score/kernel/entry.S7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/score/kernel/entry.S b/arch/score/kernel/entry.S
index 83bb96079c43..74a5cc7f596e 100644
--- a/arch/score/kernel/entry.S
+++ b/arch/score/kernel/entry.S
@@ -278,6 +278,13 @@ need_resched:
nop
#endif
+ENTRY(ret_from_kernel_thread)
+ bl schedule_tail # r4=struct task_struct *prev
+ nop
+ mv r4, r13
+ brl r12
+ j syscall_exit
+
ENTRY(ret_from_fork)
bl schedule_tail # r4=struct task_struct *prev