mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 20:54:10 +08:00
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>
This commit is contained in:
parent
1dd2ad7f2b
commit
54bd7c510b
@ -291,9 +291,9 @@
|
||||
/* 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 ]------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user