Sun Mar 4 20:44:17 2012 UTC ()
Don't try to uvm_page_physload() the tmpgdt page: this always fails because
only one physical segment is configured for Xen, and it's probably not
worth it to create a second physseg with a single page (uvm has optimisations
for the VM_PHYSSEG_MAX == 1 case)


(bouyer)
diff -r1.725 -r1.726 src/sys/arch/i386/i386/machdep.c

cvs diff -r1.725 -r1.726 src/sys/arch/i386/i386/machdep.c (expand / switch to context diff)
--- src/sys/arch/i386/i386/machdep.c 2012/03/04 15:56:09 1.725
+++ src/sys/arch/i386/i386/machdep.c 2012/03/04 20:44:17 1.726
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.725 2012/03/04 15:56:09 bouyer Exp $	*/
+/*	$NetBSD: machdep.c,v 1.726 2012/03/04 20:44:17 bouyer Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.725 2012/03/04 15:56:09 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.726 2012/03/04 20:44:17 bouyer Exp $");
 
 #include "opt_beep.h"
 #include "opt_compat_ibcs2.h"
@@ -1439,10 +1439,6 @@
 			panic("tmpgdt page relaim RW update failed.\n");
 		}
 	}
-
-	uvm_page_physload(atop((vaddr_t)tmpgdt), atop((vaddr_t)tmpgdt + PAGE_SIZE),
-	    atop((vaddr_t)tmpgdt), atop((vaddr_t)tmpgdt + PAGE_SIZE),
-	    VM_FREELIST_DEFAULT);
 
 #endif /* !XEN */