diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2018-11-09 17:33:26 +0000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-12-19 18:56:32 +1100 |
commit | 002cdfc2c78642deef24a77fab400a7f88781266 (patch) | |
tree | b17a08d7d86e417b53adce56fa0539259332d7c6 /arch/powerpc/mm | |
parent | 9efc74ff52952c854f4a1a3c1bc8cd82df6b9c9e (diff) | |
download | linux-002cdfc2c78642deef24a77fab400a7f88781266.tar.gz linux-002cdfc2c78642deef24a77fab400a7f88781266.tar.bz2 linux-002cdfc2c78642deef24a77fab400a7f88781266.zip |
powerpc/8xx: use modify_instruction_site()
Instead of hardcoding the TLB handlers patching, use
the newly created modify_instruction_site() helper.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r-- | arch/powerpc/mm/8xx_mmu.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/powerpc/mm/8xx_mmu.c b/arch/powerpc/mm/8xx_mmu.c index e2b6687ebb50..bfa503cff351 100644 --- a/arch/powerpc/mm/8xx_mmu.c +++ b/arch/powerpc/mm/8xx_mmu.c @@ -100,11 +100,7 @@ static void __init mmu_mapin_immr(void) static void __init mmu_patch_cmp_limit(s32 *site, unsigned long mapped) { - unsigned int instr = *(unsigned int *)patch_site_addr(site); - - instr &= 0xffff0000; - instr |= (unsigned long)__va(mapped) >> 16; - patch_instruction_site(site, instr); + modify_instruction_site(site, 0xffff, (unsigned long)__va(mapped) >> 16); } unsigned long __init mmu_mapin_ram(unsigned long top) |