Skip to content

Commit

Permalink
openrisc: really pass correct arg to schedule_tail
Browse files Browse the repository at this point in the history
Commit 287ad22 tried to set up the argument
to schedule_tail, but ended up using TI_STACK which isn't a defined symbol.
Sadly, the old openrisc compiler silently ignores this fact and it was first
discovered now when building with an updated toolchain.

Reported-by: Christian Svensson <blue@cmd.nu>
Signed-off-by: Jonas Bonn <jonas@southpole.se>
  • Loading branch information
Jonas Bonn committed Feb 17, 2013
1 parent b4f5b53 commit ae6fef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/openrisc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ ENTRY(_switch)
* we are expected to have set up the arg to schedule_tail already,
* hence we do so here unconditionally:
*/
l.lwz r3,TI_STACK(r3) /* Load 'prev' as schedule_tail arg */
l.lwz r3,TI_TASK(r3) /* Load 'prev' as schedule_tail arg */
l.jr r9
l.nop

Expand Down

0 comments on commit ae6fef1

Please sign in to comment.