Date: Wed, 22 Nov 2006 13:20:54 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 110382 for review Message-ID: <200611221320.kAMDKs7h058289@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=110382 Change 110382 by gonzo@gonzo_hq on 2006/11/22 13:20:47 o use page index based on virtual addres to grab page for segment. o bzero newly created segment to prevent garbage PTEs. Affected files ... .. //depot/projects/mips2/src/sys/mips/mips/pmap.c#14 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/mips/pmap.c#14 (text+ko) ==== @@ -1160,7 +1160,7 @@ VM_OBJECT_LOCK(pmap->pm_pteobj); mem = vm_page_grab(pmap->pm_pteobj, - MIPS_PMAP_SEGSIZE, + va >> SEGSHIFT, VM_ALLOC_NORMAL | VM_ALLOC_RETRY | \ VM_ALLOC_WIRED | VM_ALLOC_ZERO); @@ -1172,6 +1172,10 @@ pmap_segmap(pmap, va) = (pt_entry_t *)MIPS_PHYS_TO_KSEG0(VM_PAGE_TO_PHYS(mem)); + + /* Fill new segment with invalid pte's */ + bzero((caddr_t) pmap_segmap(pmap, va), + MIPS_PMAP_SEGSIZE * sizeof(pt_entry_t *)); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611221320.kAMDKs7h058289>