提交 f7c32c24 编写于 作者: M Michael Neuling 提交者: Benjamin Herrenschmidt

powerpc: Move initial mfspr LPCR out of __init_LPCR

We want to change what's initially set in the LPCR, so start by taking the move
from LPCR out of the function and into the caller.
Signed-off-by: NMatt Evans <matt@ozlabs.org>
Signed-off-by: NMichael Neuling <mikey@neuling.org>
Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
上级 c1fb6816
...@@ -27,6 +27,7 @@ _GLOBAL(__setup_cpu_power7) ...@@ -27,6 +27,7 @@ _GLOBAL(__setup_cpu_power7)
beqlr beqlr
li r0,0 li r0,0
mtspr SPRN_LPID,r0 mtspr SPRN_LPID,r0
mfspr r3,SPRN_LPCR
bl __init_LPCR bl __init_LPCR
bl __init_TLB bl __init_TLB
mtlr r11 mtlr r11
...@@ -39,6 +40,7 @@ _GLOBAL(__restore_cpu_power7) ...@@ -39,6 +40,7 @@ _GLOBAL(__restore_cpu_power7)
beqlr beqlr
li r0,0 li r0,0
mtspr SPRN_LPID,r0 mtspr SPRN_LPID,r0
mfspr r3,SPRN_LPCR
bl __init_LPCR bl __init_LPCR
bl __init_TLB bl __init_TLB
mtlr r11 mtlr r11
...@@ -51,6 +53,7 @@ _GLOBAL(__setup_cpu_power8) ...@@ -51,6 +53,7 @@ _GLOBAL(__setup_cpu_power8)
beqlr beqlr
li r0,0 li r0,0
mtspr SPRN_LPID,r0 mtspr SPRN_LPID,r0
mfspr r3,SPRN_LPCR
bl __init_LPCR bl __init_LPCR
bl __init_TLB bl __init_TLB
mtlr r11 mtlr r11
...@@ -63,6 +66,7 @@ _GLOBAL(__restore_cpu_power8) ...@@ -63,6 +66,7 @@ _GLOBAL(__restore_cpu_power8)
beqlr beqlr
li r0,0 li r0,0
mtspr SPRN_LPID,r0 mtspr SPRN_LPID,r0
mfspr r3,SPRN_LPCR
bl __init_LPCR bl __init_LPCR
bl __init_TLB bl __init_TLB
mtlr r11 mtlr r11
...@@ -81,6 +85,7 @@ __init_hvmode_206: ...@@ -81,6 +85,7 @@ __init_hvmode_206:
__init_LPCR: __init_LPCR:
/* Setup a sane LPCR: /* Setup a sane LPCR:
* Called with initial LPCR in R3
* *
* LPES = 0b01 (HSRR0/1 used for 0x500) * LPES = 0b01 (HSRR0/1 used for 0x500)
* PECE = 0b111 * PECE = 0b111
...@@ -91,7 +96,6 @@ __init_LPCR: ...@@ -91,7 +96,6 @@ __init_LPCR:
* *
* Other bits untouched for now * Other bits untouched for now
*/ */
mfspr r3,SPRN_LPCR
li r5,1 li r5,1
rldimi r3,r5, LPCR_LPES_SH, 64-LPCR_LPES_SH-2 rldimi r3,r5, LPCR_LPES_SH, 64-LPCR_LPES_SH-2
ori r3,r3,(LPCR_PECE0|LPCR_PECE1|LPCR_PECE2) ori r3,r3,(LPCR_PECE0|LPCR_PECE1|LPCR_PECE2)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册