PERFORCE change 97327 for review

Kip Macy kmacy at FreeBSD.org
Wed May 17 06:24:12 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=97327

Change 97327 by kmacy at 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();


More information about the p4-projects mailing list