Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 2006 07:39:52 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 92118 for review
Message-ID:  <200602210739.k1L7dqh1098148@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <machine/smp.h>
 #include <machine/tlb.h>
 #include <machine/tte.h>
+#include <machine/pcb.h>
 #include <machine/tsb.h>
 
 #include <machine/hypervisor_api.h>
@@ -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();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602210739.k1L7dqh1098148>