Date: Sat, 8 Nov 2003 15:41:52 -0800 (PST) From: Juli Mallett <jmallett@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 41770 for review Message-ID: <200311082341.hA8Nfqo4018044@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=41770 Change 41770 by jmallett@jmallett_dalek on 2003/11/08 15:41:15 Cleanup, keep a fuller TLB. Affected files ... .. //depot/projects/mips/sys/mips/mips/tlb.c#13 edit Differences ... ==== //depot/projects/mips/sys/mips/mips/tlb.c#13 (text+ko) ==== @@ -110,13 +110,13 @@ printf("pmap %p entering invalid mapping for va %lx to pa %lx [%lx]\n", pmap, (u_long)va, (u_long)pa, (u_long)bits); *pte = MIPS_PA_TO_PFN(pa) | bits; -#if notyet + if (pmap == kernel_pmap) + *pte |= PG_G; if ((va >> PAGE_SHIFT) & 1) { tlb_update(va, pte[-1], pte[0]); } else { tlb_update(va, pte[0], pte[1]); } -#endif } void @@ -151,7 +151,7 @@ tlb_insert(vm_offset_t va, pt_entry_t pte0, pt_entry_t pte1) { u_long ehi; - long i; + int i; va &= ~PAGE_MASK; ehi = 0; @@ -166,10 +166,9 @@ mips_wr_entrylo0(pte0); mips_wr_entrylo1(pte1); mips_wr_entryhi(ehi); - if (i < 0) { - tlb_invalidate_page(va); + if (i < 0) mips_tlbwr(); - } else + else mips_tlbwi(); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311082341.hA8Nfqo4018044>