Date: Wed, 17 May 2006 06:23:51 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 97327 for review Message-ID: <200605170623.k4H6NpM8053445@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=97327 Change 97327 by kmacy@kmacy_storage:sun4v_rwbuf on 2006/05/17 06:22:59 remove dead code Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#50 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#50 (text+ko) ==== @@ -1261,26 +1261,9 @@ spinlock_enter(); - if (cleartsb == TRUE) { -#if 0 - if ((((eva - sva) >> PAGE_SHIFT) < MAX_TSB_CLEARS) || - (pmap->pm_context == 0)) -#endif - tsb_clear_range(&pmap->pm_tsb, sva, eva); -#if 0 - else - tsb_clear(&pmap->pm_tsb); -#endif - } + if (cleartsb == TRUE) + tsb_clear_range(&pmap->pm_tsb, sva, eva); - /* XXX - this is needed to make sure that the first page of a process' text - * is flushed from the TLB - there aren't any exisiting pmap implementation's - * that show how to flush just the page in question - on x86 the TLB is flushed - * every time cr3 is changed - */ -#if 0 - invltlb(); -#endif if ((sva - eva) < PAGE_SIZE*32 ) { for (tva = sva; tva < eva; tva += PAGE_SIZE_8K) invlpg(tva, pmap->pm_context); @@ -1325,8 +1308,7 @@ #ifdef SMP pmap_ipi(pmap, func, pmap->pm_context, 0); - if (pmap != kernel_pmap) - pmap->pm_tlbactive = pmap->pm_active; + pmap->pm_tlbactive = pmap->pm_active; #endif spinlock_exit();
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605170623.k4H6NpM8053445>