]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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 1088b5fca3bdd44abed7ec4432dc135e918856f8..46aa940ebd208532e1cbeee05300dde9518dc3cd 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 ]------------------------------------------- */