[MIPS] Always do the ARC64_TWIDDLE_PC thing.
Always jump to the place where the kernel is linked to. This helps where the bootloaders/proms ignores the start address inside the ELF header. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:

committed by
Ralf Baechle

parent
d85714d81c
commit
15ad838d28
@@ -46,7 +46,14 @@
|
||||
lh t1, KV_RO_NASID_OFFSET(t0)
|
||||
lh t2, KV_RW_NASID_OFFSET(t0)
|
||||
MAPPED_KERNEL_SETUP_TLB
|
||||
ARC64_TWIDDLE_PC
|
||||
|
||||
/*
|
||||
* We might not get launched at the address the kernel is linked to,
|
||||
* so we jump there.
|
||||
*/
|
||||
PTR_LA t0, 0f
|
||||
jr t0
|
||||
0:
|
||||
.endm
|
||||
|
||||
#endif /* __ASM_MACH_IP27_KERNEL_ENTRY_H */
|
||||
|
Reference in New Issue
Block a user