Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2008 05:58:59 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 133455 for review
Message-ID:  <200801170558.m0H5wxNJ048211@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133455

Change 133455 by kmacy@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
 



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