{
/* For one page, it's not worth testing the split_tlb variable */
+ mb();
mtsp(vma->vm_mm->context,1);
+ purge_tlb_start();
pdtlb(addr);
pitlb(addr);
+ purge_tlb_end();
}
static inline void flush_tlb_range(struct vm_area_struct *vma,
{
unsigned long npages;
+
npages = ((end - (start & PAGE_MASK)) + (PAGE_SIZE - 1)) >> PAGE_SHIFT;
if (npages >= 512) /* XXX arbitrary, should be tuned */
flush_tlb_all();
mtsp(vma->vm_mm->context,1);
if (split_tlb) {
+ purge_tlb_start();
while (npages--) {
pdtlb(start);
pitlb(start);
start += PAGE_SIZE;
}
+ purge_tlb_end();
} else {
+ purge_tlb_start();
while (npages--) {
pdtlb(start);
start += PAGE_SIZE;
}
+ purge_tlb_end();
}
}
}