projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
781fb7a
)
powerpc/powernv: Don't clobber r9 in relative_toc()
author
Benjamin Herrenschmidt
<
[email protected]
>
Mon, 19 Sep 2011 17:44:51 +0000
(17:44 +0000)
committer
Benjamin Herrenschmidt
<
[email protected]
>
Tue, 20 Sep 2011 05:53:24 +0000
(15:53 +1000)
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 <
[email protected]
>
arch/powerpc/kernel/head_64.S
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/head_64.S
b/arch/powerpc/kernel/head_64.S
index 3564c49c683e1b870da4b7aa455e7155058526d5..e708abe576d3eb67f198e64dd6399967171be810 100644
(file)
--- a/
arch/powerpc/kernel/head_64.S
+++ b/
arch/powerpc/kernel/head_64.S
@@
-674,9
+674,9
@@
_GLOBAL(enable_64b_mode)
_GLOBAL(relative_toc)
mflr r0
bcl 20,31,$+4
-0: mflr r
9
- ld r2,(p_toc - 0b)(r
9
)
- add r2,r2,r
9
+0: mflr r
11
+ ld r2,(p_toc - 0b)(r
11
)
+ add r2,r2,r
11
mtlr r0
blr