X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=arch%2Farm%2Fmm%2Fcontext.c;fp=arch%2Farm%2Fmm%2Fcontext.c;h=fc84fcc743804d16241a99ee5cb1c86f650dd048;hb=805f53f085346b6765eda02820721a14ce0d644f;hp=930c04c4f53cb0a5843d201534d51840d6530673;hpb=c5f125031f416ba6350e84462e9039737b6e2bab;p=powerpc.git diff --git a/arch/arm/mm/context.c b/arch/arm/mm/context.c index 930c04c4f5..fc84fcc743 100644 --- a/arch/arm/mm/context.c +++ b/arch/arm/mm/context.c @@ -49,6 +49,13 @@ void __new_context(struct mm_struct *mm) : "r" (0)); isb(); flush_tlb_all(); + if (icache_is_vivt_asid_tagged()) { + asm("mcr p15, 0, %0, c7, c5, 0 @ invalidate I-cache\n" + "mcr p15, 0, %0, c7, c5, 6 @ flush BTAC/BTB\n" + : + : "r" (0)); + dsb(); + } } spin_unlock(&cpu_asid_lock);