diff -Nru linux/include/asm-mips/tlb.h.orig linux/include/asm-mips/tlb.h --- linux/include/asm-mips/tlb.h.orig Thu Oct 31 08:35:52 2002 +++ linux/include/asm-mips/tlb.h Thu Jan 15 10:02:14 2004 @@ -2,9 +2,14 @@ #define __ASM_TLB_H /* - * MIPS doesn't need any special per-pte or per-vma handling.. + * MIPS doesn't need any special per-pte or per-vma handling, except + * we need to flush cache for area to be unmapped. */ -#define tlb_start_vma(tlb, vma) do { } while (0) +#define tlb_start_vma(tlb, vma) \ + do { \ + if (!tlb->fullmm) \ + flush_cache_range(vma, vma->vm_start, vma->vm_end); \ + } while (0) #define tlb_end_vma(tlb, vma) do { } while (0) #define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0)