Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Simplify pmap_init_tmp_pgtbl() a bit.



details:   https://anonhg.NetBSD.org/src/rev/89ae51de27ba
branches:  trunk
changeset: 750672:89ae51de27ba
user:      jym <jym%NetBSD.org@localhost>
date:      Sun Jan 10 12:10:23 2010 +0000

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

diffstat:

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

diffs (29 lines):

diff -r 47a20ec09abb -r 89ae51de27ba sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c   Sun Jan 10 09:34:45 2010 +0000
+++ b/sys/arch/x86/x86/pmap.c   Sun Jan 10 12:10:23 2010 +0000
@@ -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];
 



Home | Main Index | Thread Index | Old Index