Skip to content

Commit 54bd7c5

Browse files
skristianssonJonas Bonn
authored andcommitted
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>
1 parent 1dd2ad7 commit 54bd7c5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/openrisc/kernel/head.S‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@
291291
/* Jump to .init code at _start which lives in the .head section
292292
* and will be discarded after boot.
293293
*/
294-
LOAD_SYMBOL_2_GPR(r4, _start)
295-
tophys (r3,r4) /* MMU disabled */
296-
l.jr r3
294+
LOAD_SYMBOL_2_GPR(r15, _start)
295+
tophys (r13,r15) /* MMU disabled */
296+
l.jr r13
297297
l.nop
298298

299299
/* ---[ 0x200: BUS exception ]------------------------------------------- */

0 commit comments

Comments
 (0)