unsigned long end);
extern void flush_tlb_kernel_range(unsigned long start, unsigned long end);
+#ifdef CONFIG_SMP
void _tlbie(unsigned long address);
+#else
+static inline void _tlbie(unsigned long address)
+{
+ asm volatile ("tlbie %0; sync" : : "r" (address) : "memory");
+}
+#endif
void _tlbia(void);
static inline void local_flush_tlb_page(struct vm_area_struct *vma,
/*
* Flush an entry from the TLB
*/
-_GLOBAL(_tlbie)
#ifdef CONFIG_SMP
+_GLOBAL(_tlbie)
lwz r8,TASK_CPU(r2)
oris r8,r8,11
mfmsr r10
stw r0,0(r9) /* clear mmu_hash_lock */
mtmsr r10
isync
-#else /* CONFIG_SMP */
- tlbie r3
- sync
-#endif /* CONFIG_SMP */
blr
_ASM_NOKPROBE_SYMBOL(_tlbie)
+#endif /* CONFIG_SMP */
/*
* Flush the entire TLB. 603/603e only