Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae6fef17 authored by Jonas Bonn's avatar Jonas Bonn
Browse files

openrisc: really pass correct arg to schedule_tail



Commit 287ad220 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: default avatarChristian Svensson <blue@cmd.nu>
Signed-off-by: default avatarJonas Bonn <jonas@southpole.se>
parent b4f5b536
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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