Module Name:    src
Committed By:   jym
Date:           Sun Jan 10 12:10:23 UTC 2010

Modified Files:
        src/sys/arch/x86/x86: pmap.c

Log Message:
Simplify pmap_init_tmp_pgtbl() a bit.

The first level of the temporary page mappings are also done in the first
iteration of the loop below, so no need to do it before.

ok by joerg@ in private mail.


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/arch/x86/x86/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/x86/pmap.c
diff -u src/sys/arch/x86/x86/pmap.c:1.98 src/sys/arch/x86/x86/pmap.c:1.99
--- src/sys/arch/x86/x86/pmap.c:1.98	Wed Nov 25 14:28:50 2009
+++ src/sys/arch/x86/x86/pmap.c	Sun Jan 10 12:10:23 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.c,v 1.98 2009/11/25 14:28:50 rmind Exp $	*/
+/*	$NetBSD: pmap.c,v 1.99 2010/01/10 12:10:23 jym Exp $	*/
 
 /*
  * Copyright (c) 2007 Manuel Bouyer.
@@ -149,7 +149,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.98 2009/11/25 14:28:50 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.99 2010/01/10 12:10:23 jym Exp $");
 
 #include "opt_user_ldt.h"
 #include "opt_lockdebug.h"
@@ -4795,10 +4795,6 @@
 	tmp_pml = (void *)x86_tmp_pml_vaddr[PTP_LEVELS - 1];
 	memcpy(tmp_pml, kernel_pml, PAGE_SIZE);
 
-	/* Hook our own level 3 in */
-	tmp_pml[pl_i(pg, PTP_LEVELS)] =
-	    (x86_tmp_pml_paddr[PTP_LEVELS - 2] & PG_FRAME) | PG_RW | PG_V;
-
 	for (level = PTP_LEVELS - 1; level > 0; --level) {
 		tmp_pml = (void *)x86_tmp_pml_vaddr[level];
 

Reply via email to