aboutsummaryrefslogtreecommitdiffstats
path: root/arch/openrisc
diff options
context:
space:
mode:
authorStefan Kristiansson <stefan.kristiansson@saunalahti.fi>2012-10-12 02:38:18 -0400
committerJonas Bonn <jonas@southpole.se>2013-02-10 12:55:46 -0500
commit54bd7c510ba027763130eaeb09004ef5780c06e6 (patch)
tree27dcab76dc8803eaedb2f623acdc27a43b20b1af /arch/openrisc
parent1dd2ad7f2b414805de2020d5bf2d5adc3cf6243c (diff)
openrisc: avoid using function parameter regs in reset vector
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>
Diffstat (limited to 'arch/openrisc')
-rw-r--r--arch/openrisc/kernel/head.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/openrisc/kernel/head.S b/arch/openrisc/kernel/head.S
index 1088b5fca3bd..46aa940ebd20 100644
--- a/arch/openrisc/kernel/head.S
+++ b/arch/openrisc/kernel/head.S
@@ -291,9 +291,9 @@
291 /* Jump to .init code at _start which lives in the .head section 291 /* Jump to .init code at _start which lives in the .head section
292 * and will be discarded after boot. 292 * and will be discarded after boot.
293 */ 293 */
294 LOAD_SYMBOL_2_GPR(r4, _start) 294 LOAD_SYMBOL_2_GPR(r15, _start)
295 tophys (r3,r4) /* MMU disabled */ 295 tophys (r13,r15) /* MMU disabled */
296 l.jr r3 296 l.jr r13
297 l.nop 297 l.nop
298 298
299/* ---[ 0x200: BUS exception ]------------------------------------------- */ 299/* ---[ 0x200: BUS exception ]------------------------------------------- */