Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

openrisc: really pass correct arg to schedule_tail

Commit 287ad220cd8b5a9d29f71c78f6e4051093f051fc 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 -1
+1 -1
arch/openrisc/kernel/entry.S
··· 1050 1050 * we are expected to have set up the arg to schedule_tail already, 1051 1051 * hence we do so here unconditionally: 1052 1052 */ 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 */ 1054 1054 l.jr r9 1055 1055 l.nop 1056 1056