PERFORCE change 92118 for review
Kip Macy
kmacy at FreeBSD.org
Mon Feb 20 23:39:54 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=92118
Change 92118 by kmacy at 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();
More information about the p4-projects
mailing list