aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-09-19 13:44:51 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-09-20 01:53:24 -0400
commite550592e689cf8d682937f356497f989f3d88292 (patch)
tree9cd89cd8c4056403e180c24ac8140cf8f2a1ca8f /arch
parent781fb7a3e4cdca28236ae23e2c77070ed3ae531f (diff)
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/head_64.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S
index 3564c49c683e..e708abe576d3 100644
--- a/arch/powerpc/kernel/head_64.S
+++ b/arch/powerpc/kernel/head_64.S
@@ -674,9 +674,9 @@ _GLOBAL(enable_64b_mode)
674_GLOBAL(relative_toc) 674_GLOBAL(relative_toc)
675 mflr r0 675 mflr r0
676 bcl 20,31,$+4 676 bcl 20,31,$+4
6770: mflr r9 6770: mflr r11
678 ld r2,(p_toc - 0b)(r9) 678 ld r2,(p_toc - 0b)(r11)
679 add r2,r2,r9 679 add r2,r2,r11
680 mtlr r0 680 mtlr r0
681 blr 681 blr
682 682