Date: Thu, 17 Jan 2008 06:38:41 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 133460 for review Message-ID: <200801170638.m0H6cfZ5061777@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133460 Change 133460 by kmacy@pandemonium:kmacy:xen31 on 2008/01/17 06:37:47 fix pmap_release to release the pdpt rather than releasing the first page in the pdir twice Affected files ... .. //depot/projects/xen31/sys/i386/xen/pmap.c#21 edit Differences ... ==== //depot/projects/xen31/sys/i386/xen/pmap.c#21 (text+ko) ==== @@ -1692,7 +1692,12 @@ { vm_page_t m, ptdpg[NPGPTD+1]; vm_paddr_t ma; - int i, npgptd = NPGPTD + 1; + int i; +#ifdef PAE + int npgptd = NPGPTD + 1; +#else + int npgptd = NPGPTD; +#endif KASSERT(pmap->pm_stats.resident_count == 0, ("pmap_release: pmap resident count %ld != 0", @@ -1705,8 +1710,10 @@ for (i = 0; i < NPGPTD; i++) ptdpg[i] = PHYS_TO_VM_PAGE(PT_GET(&pmap->pm_pdir[PTDPTDI + i]) & PG_FRAME); - - ptdpg[NPGPTD] = PHYS_TO_VM_PAGE(vtophys(pmap->pm_pdir)); + +#ifdef PAE + ptdpg[NPGPTD] = PHYS_TO_VM_PAGE(vtophys(pmap->pm_pdpt)); +#endif for (i = 0; i < nkpt + NPGPTD; i++) PD_CLEAR_VA(pmap, PTDPTDI + i, FALSE);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801170638.m0H6cfZ5061777>