openrisc: really pass correct arg to schedule_tail
authorJonas Bonn <jonas@southpole.se>
Fri, 15 Feb 2013 16:07:17 +0000 (17:07 +0100)
committerJonas Bonn <jonas@southpole.se>
Sun, 17 Feb 2013 07:46:21 +0000 (08:46 +0100)
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>
arch/openrisc/kernel/entry.S

index 3de9712..e7fadc0 100644 (file)
@@ -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