From owner-p4-projects@FreeBSD.ORG Wed May 17 06:24:12 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E14FE16A466; Wed, 17 May 2006 06:24:11 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7F3F16A45E for ; Wed, 17 May 2006 06:24:10 +0000 (UTC) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83DCA43D4C for ; Wed, 17 May 2006 06:24:10 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k4H6Np2L053448 for ; Wed, 17 May 2006 06:23:51 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k4H6NpM8053445 for perforce@freebsd.org; Wed, 17 May 2006 06:23:51 GMT (envelope-from kmacy@freebsd.org) Date: Wed, 17 May 2006 06:23:51 GMT Message-Id: <200605170623.k4H6NpM8053445@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to kmacy@freebsd.org using -f From: Kip Macy To: Perforce Change Reviews Cc: Subject: PERFORCE change 97327 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 06:24:12 -0000 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();