PERFORCE change 48832 for review

Juli Mallett jmallett at FreeBSD.org
Fri Mar 12 15:09:32 PST 2004


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

Change 48832 by jmallett at jmallett_oingo on 2004/03/12 15:09:10

	initialize pm->lev1 in the forking case, also implement
	deactivate.  from Alpha.

Affected files ...

.. //depot/projects/mips/sys/mips/mips/pmap.c#32 edit

Differences ...

==== //depot/projects/mips/sys/mips/mips/pmap.c#32 (text+ko) ====

@@ -707,6 +707,8 @@
 	/* install self-referential address mapping entry (not PG_ASM) */
 	pmap->pm_lev1[PTLEV1I] = pmap_phys_to_pte(VM_PAGE_TO_PHYS(lev1pg))
 		| PG_V | PG_KRE | PG_KWE;
+#else
+	pmap->pm_lev1 = NULL;
 #endif
 	pmap->pm_ptphint = NULL;
 	pmap->pm_active = 0;
@@ -1694,6 +1696,16 @@
 	}
 }
 
+void
+pmap_deactivate(struct thread *td)
+{
+	pmap_t pmap;
+
+	pmap = vmspace_pmap(td->td_proc->p_vmspace);
+	atomic_clear_int(&pmap->pm_active, PCPU_GET(cpumask));
+	pmap_active = 0;
+}
+
 /*
  * XXX ?
  */


More information about the p4-projects mailing list