summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/head_40x.S
diff options
context:
space:
mode:
authorChristophe Leroy2019-02-21 11:37:53 +0100
committerMichael Ellerman2019-02-21 14:10:16 +0100
commit40058337f23f79212f92ed5ef066e90a032905b1 (patch)
tree6a0dac2960e645805cc00134cbbabfff64664c9a /arch/powerpc/kernel/head_40x.S
parentpowerpc/83xx: Also save/restore SPRG4-7 during suspend (diff)
downloadkernel-qcow2-linux-40058337f23f79212f92ed5ef066e90a032905b1.tar.gz
kernel-qcow2-linux-40058337f23f79212f92ed5ef066e90a032905b1.tar.xz
kernel-qcow2-linux-40058337f23f79212f92ed5ef066e90a032905b1.zip
powerpc: simplify BDI switch
There is no reason to re-read each time the pointer at location 0xf0 as it is fixed and known. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/head_40x.S')
-rw-r--r--arch/powerpc/kernel/head_40x.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/head_40x.S b/arch/powerpc/kernel/head_40x.S
index b19d78410511..11dd09d0ce1a 100644
--- a/arch/powerpc/kernel/head_40x.S
+++ b/arch/powerpc/kernel/head_40x.S
@@ -953,9 +953,8 @@ _GLOBAL(set_context)
/* Context switch the PTE pointer for the Abatron BDI2000.
* The PGDIR is the second parameter.
*/
- lis r5, KERNELBASE@h
- lwz r5, 0xf0(r5)
- stw r4, 0x4(r5)
+ lis r5, abatron_pteptrs@ha
+ stw r4, abatron_pteptrs@l + 0x4(r5)
#endif
sync
mtspr SPRN_PID,r3