PERFORCE change 135931 for review

Kip Macy kmacy at FreeBSD.org
Fri Feb 22 01:28:29 UTC 2008


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

Change 135931 by kmacy at pandemonium:kmacy:xen31 on 2008/02/22 01:27:36

	flush any pending updates before creating a new page table mapping

Affected files ...

.. //depot/projects/xen31/sys/i386/xen/pmap.c#38 edit

Differences ...

==== //depot/projects/xen31/sys/i386/xen/pmap.c#38 (text+ko) ====

@@ -957,6 +957,7 @@
 		mtx_lock(&PMAP2mutex);
 		newpf = *pde & PG_FRAME;
 		if ((*PMAP2 & PG_FRAME) != newpf) {
+			PT_UPDATES_FLUSH();
 			*PMAP2 = newpf | PG_V | PG_A | PG_M;
 			pmap_invalidate_page(kernel_pmap, (vm_offset_t)PADDR2);
 		}
@@ -1014,6 +1015,7 @@
 		KASSERT(curthread->td_pinned > 0, ("curthread not pinned"));
 		newpf = *pde & PG_FRAME;
 		if ((*PMAP1 & PG_FRAME) != newpf) {
+			PT_UPDATES_FLUSH();
 			*PMAP1 = newpf | PG_V | PG_A | PG_M;
 #ifdef SMP
 			PMAP1cpu = PCPU_GET(cpuid);


More information about the p4-projects mailing list