PERFORCE change 133455 for review

Kip Macy kmacy at FreeBSD.org
Wed Jan 16 21:59:00 PST 2008


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

Change 133455 by kmacy at pandemonium:kmacy:xen31 on 2008/01/17 05:58:52

	ignore page table entries without the valid bit set, treat
	them as if they were zero

Affected files ...

.. //depot/projects/xen31/sys/i386/include/xen/xenpmap.h#8 edit

Differences ...

==== //depot/projects/xen31/sys/i386/include/xen/xenpmap.h#8 (text+ko) ====

@@ -75,7 +75,7 @@
 
 #define INVALID_P2M_ENTRY	(~0UL)
 
-#define pmap_valid_entry(E)           ((E) > PAGE_SIZE) /* is PDE or PTE valid? */
+#define pmap_valid_entry(E)           ((E) & PG_V) /* is PDE or PTE valid? */
 
 #define SH_PD_SET_VA        1
 #define SH_PD_SET_VA_MA     2
@@ -102,7 +102,7 @@
 }
 #endif
 #define	PT_GET(_ptp)						\
-	(pmap_valid_entry(*(_ptp)) ? xpmap_mtop(*(_ptp)) : *(_ptp))
+	(pmap_valid_entry(*(_ptp)) ? xpmap_mtop(*(_ptp)) : (0))
 
 #ifdef WRITABLE_PAGETABLES
 


More information about the p4-projects mailing list