diff options
Diffstat (limited to 'arch/mips/kernel/entry.S')
-rw-r--r-- | arch/mips/kernel/entry.S | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S index 9b00362f32f6..e5786858cdb6 100644 --- a/arch/mips/kernel/entry.S +++ b/arch/mips/kernel/entry.S | |||
@@ -70,6 +70,12 @@ need_resched: | |||
70 | b need_resched | 70 | b need_resched |
71 | #endif | 71 | #endif |
72 | 72 | ||
73 | FEXPORT(ret_from_kernel_thread) | ||
74 | jal schedule_tail # a0 = struct task_struct *prev | ||
75 | move a0, s1 | ||
76 | jal s0 | ||
77 | j syscall_exit | ||
78 | |||
73 | FEXPORT(ret_from_fork) | 79 | FEXPORT(ret_from_fork) |
74 | jal schedule_tail # a0 = struct task_struct *prev | 80 | jal schedule_tail # a0 = struct task_struct *prev |
75 | 81 | ||