Skip to content

Commit ae6fef1

Browse files
author
Jonas Bonn
committed
openrisc: really pass correct arg to schedule_tail
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>
1 parent b4f5b53 commit ae6fef1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/openrisc/kernel/entry.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ ENTRY(_switch)
10501050
* we are expected to have set up the arg to schedule_tail already,
10511051
* hence we do so here unconditionally:
10521052
*/
1053-
l.lwz r3,TI_STACK(r3) /* Load 'prev' as schedule_tail arg */
1053+
l.lwz r3,TI_TASK(r3) /* Load 'prev' as schedule_tail arg */
10541054
l.jr r9
10551055
l.nop
10561056

0 commit comments

Comments
 (0)