Date: Thu, 25 May 2006 01:14:39 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 97778 for review Message-ID: <200605250114.k4P1EdGM004141@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=97778 Change 97778 by kmacy@kmacy_storage:sun4v_work on 2006/05/25 01:14:33 use pmap_scrub_pages until we get a proper optimized bzero Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#58 edit .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/vm_machdep.c#9 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#58 (text+ko) ==== @@ -1857,7 +1857,7 @@ void pmap_zero_page(vm_page_t m) { - bzero((char *)TLB_PHYS_TO_DIRECT(VM_PAGE_TO_PHYS(m)), PAGE_SIZE); + pmap_scrub_pages(VM_PAGE_TO_PHYS(m), PAGE_SIZE); } void @@ -1876,6 +1876,6 @@ void pmap_zero_page_idle(vm_page_t m) { - bzero((char *)TLB_PHYS_TO_DIRECT(VM_PAGE_TO_PHYS(m)), PAGE_SIZE); + pmap_scrub_pages(VM_PAGE_TO_PHYS(m), PAGE_SIZE); } ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/vm_machdep.c#9 (text+ko) ==== @@ -416,8 +416,8 @@ pa = VM_PAGE_TO_PHYS(m); va = (void *)TLB_PHYS_TO_DIRECT(pa); - if ((wait & M_ZERO) && (m->flags & PG_ZERO) == 0) - bzero(va, PAGE_SIZE); + if ((wait & M_ZERO) && ((m->flags & PG_ZERO) == 0)) + pmap_scrub_pages(pa, PAGE_SIZE); return (va); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605250114.k4P1EdGM004141>