From owner-p4-projects@FreeBSD.ORG Tue Feb 21 07:39:54 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 D41B516A426; Tue, 21 Feb 2006 07:39:53 +0000 (GMT) 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 A359E16A423 for ; Tue, 21 Feb 2006 07:39:53 +0000 (GMT) (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 E4E1943D55 for ; Tue, 21 Feb 2006 07:39:52 +0000 (GMT) (envelope-from kmacy@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1L7dq0L098151 for ; Tue, 21 Feb 2006 07:39:52 GMT (envelope-from kmacy@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1L7dqh1098148 for perforce@freebsd.org; Tue, 21 Feb 2006 07:39:52 GMT (envelope-from kmacy@freebsd.org) Date: Tue, 21 Feb 2006 07:39:52 GMT Message-Id: <200602210739.k1L7dqh1098148@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 92118 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: Tue, 21 Feb 2006 07:39:54 -0000 http://perforce.freebsd.org/chv.cgi?CH=92118 Change 92118 by kmacy@kmacy_storage:sun4v_work on 2006/02/21 07:39:00 fix pmap_activate Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#9 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/pmap.c#9 (text+ko) ==== @@ -45,6 +45,7 @@ #include #include #include +#include #include #include @@ -203,9 +204,7 @@ void pmap_activate(struct thread *td) { -#ifdef notyet struct proc *p = td->td_proc; -#endif pmap_t pmap, oldpmap; critical_enter(); @@ -219,22 +218,18 @@ pmap->pm_active |= 1; #endif -#ifdef notyet + /* XXX complains of incomplete type in spite of being defined */ if (p->p_flag & P_SA) { /* Make sure all other cr3 entries are updated. */ /* what if they are running? XXXKSE (maybe abort them) */ FOREACH_THREAD_IN_PROC(p, td) { - td-> - td_pcb-> - pcb_pdir = - pmap-> - pm_pdir; + td->td_pcb->pcb_pdir = pmap->pm_pdir; } } else { td->td_pcb->pcb_pdir = pmap->pm_pdir; } -#endif + set_pdir_scratchpad(pmap->pm_pdir); PCPU_SET(curpmap, pmap); critical_exit();