From: Russell King Date: Wed, 9 May 2007 09:41:28 +0000 (+0100) Subject: Merge branches 'armv7', 'at91', 'misc' and 'omap' into devel X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=805f53f085346b6765eda02820721a14ce0d644f;p=openwrt%2Fstaging%2Fblogic.git Merge branches 'armv7', 'at91', 'misc' and 'omap' into devel --- 805f53f085346b6765eda02820721a14ce0d644f diff --cc arch/arm/mm/context.c index c9e9a5586267,9da43a0fdcdf,930c04c4f53c,9da43a0fdcdf..fc84fcc74380 --- a/arch/arm/mm/context.c +++ b/arch/arm/mm/context.c @@@@@ -47,14 -47,7 -49,9 -47,7 +49,16 @@@@@ 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); ++ + mm->cpu_vm_mask = cpumask_of_cpu(smp_processor_id()); mm->context.id = asid; }