summaryrefslogtreecommitdiff
path: root/arch/openrisc/kernel/process.c
diff options
context:
space:
mode:
authorJonas Bonn <jonas@southpole.se>2012-10-14 16:19:52 +0200
committerJonas Bonn <jonas@southpole.se>2012-10-19 18:32:36 +0200
commit287ad220cd8b5a9d29f71c78f6e4051093f051fc (patch)
treedc04df7d8474f1f9a5fb597423f955595ba24a0d /arch/openrisc/kernel/process.c
parentddffeb8c4d0331609ef2581d84de4d763607bd37 (diff)
openrisc: pass correct arg to schedule_tail
schedule_tail() requires that the 'prev' task be passed as an argument to it. This arg is set in _switch, just before 'returning' to one of the ret_* functions where schedule_tail is invoked. Signed-off-by: Jonas Bonn <jonas@southpole.se>
Diffstat (limited to 'arch/openrisc/kernel/process.c')
-rw-r--r--arch/openrisc/kernel/process.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/openrisc/kernel/process.c b/arch/openrisc/kernel/process.c
index c35f3ab1a8d3..ad26d5af2649 100644
--- a/arch/openrisc/kernel/process.c
+++ b/arch/openrisc/kernel/process.c
@@ -165,7 +165,6 @@ copy_thread(unsigned long clone_flags, unsigned long usp,
* the kernel stack.
*/
kregs->sp = top_of_kernel_stack;
- kregs->gpr[3] = (unsigned long)current; /* arg to schedule_tail */
kregs->gpr[10] = (unsigned long)task_thread_info(p);
kregs->gpr[9] = (unsigned long)ret_from_fork;