Skip to content

Commit

Permalink
powerpc/8xx: use modify_instruction_site()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christophe Leroy authored and Michael Ellerman committed Dec 19, 2018
1 parent 9efc74f commit 002cdfc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/powerpc/mm/8xx_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 002cdfc

Please sign in to comment.