Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/i386 Don't try to uvm_page_physload() the tmpg...



details:   https://anonhg.NetBSD.org/src/rev/0e2f0dbbfef0
branches:  trunk
changeset: 777794:0e2f0dbbfef0
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Mar 04 20:44:17 2012 +0000

description:
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)

diffstat:

 sys/arch/i386/i386/machdep.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r 8b3494106be6 -r 0e2f0dbbfef0 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Sun Mar 04 20:01:45 2012 +0000
+++ b/sys/arch/i386/i386/machdep.c      Sun Mar 04 20:44:17 2012 +0000
@@ -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"
@@ -1440,10 +1440,6 @@
                }
        }
 
-       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 */
 
        init386_msgbuf();



Home | Main Index | Thread Index | Old Index