openrisc: avoid using function parameter regs in reset vector
authorStefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Fri, 12 Oct 2012 06:38:18 +0000 (09:38 +0300)
committerJonas Bonn <jonas@southpole.se>
Sun, 10 Feb 2013 17:55:46 +0000 (18:55 +0100)
The kernel might be invoked through the reset vector, so to
preserve parameters passed to it, temp regs that are not
in the function parameter range needs to be used.

Signed-off-by: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Signed-off-by: Jonas Bonn <jonas@southpole.se>
arch/openrisc/kernel/head.S

index 1088b5f..46aa940 100644 (file)
        /* Jump to .init code at _start which lives in the .head section
         * and will be discarded after boot.
         */
-       LOAD_SYMBOL_2_GPR(r4, _start)
-       tophys  (r3,r4)                 /* MMU disabled */
-       l.jr    r3
+       LOAD_SYMBOL_2_GPR(r15, _start)
+       tophys  (r13,r15)                       /* MMU disabled */
+       l.jr    r13
         l.nop
 
 /* ---[ 0x200: BUS exception ]------------------------------------------- */