mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 06:26:48 +07:00
powerpc/powernv: Don't clobber r9 in relative_toc()
With OPAL, r8 and r9 will be used to pass the OPAL base and entry for debugging purposes (those informations are also in the device-tree). We don't want to clobber those registers that early. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
781fb7a3e4
commit
e550592e68
@ -674,9 +674,9 @@ _GLOBAL(enable_64b_mode)
|
||||
_GLOBAL(relative_toc)
|
||||
mflr r0
|
||||
bcl 20,31,$+4
|
||||
0: mflr r9
|
||||
ld r2,(p_toc - 0b)(r9)
|
||||
add r2,r2,r9
|
||||
0: mflr r11
|
||||
ld r2,(p_toc - 0b)(r11)
|
||||
add r2,r2,r11
|
||||
mtlr r0
|
||||
blr
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user