Source-Changes-HG archive

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

[src/yamt-km]: src/sys/arch/mac68k/mac68k remove redundant initialization of ...



details:   https://anonhg.NetBSD.org/src/rev/2f96f3faa95e
branches:  yamt-km
changeset: 573357:2f96f3faa95e
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Feb 23 10:01:03 2005 +0000

description:
remove redundant initialization of l2 descriptors.

diffstat:

 sys/arch/mac68k/mac68k/pmap_bootstrap.c |  14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)

diffs (42 lines):

diff -r 28af00391d36 -r 2f96f3faa95e sys/arch/mac68k/mac68k/pmap_bootstrap.c
--- a/sys/arch/mac68k/mac68k/pmap_bootstrap.c   Wed Feb 23 09:42:43 2005 +0000
+++ b/sys/arch/mac68k/mac68k/pmap_bootstrap.c   Wed Feb 23 10:01:03 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_bootstrap.c,v 1.61.4.2 2005/02/23 07:48:23 yamt Exp $     */
+/*     $NetBSD: pmap_bootstrap.c,v 1.61.4.3 2005/02/23 10:01:03 yamt Exp $     */
 
 /* 
  * Copyright (c) 1991, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.61.4.2 2005/02/23 07:48:23 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.61.4.3 2005/02/23 10:01:03 yamt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -259,7 +259,7 @@
                *ste = (u_int)pte | SG_U | SG_RW | SG_V;
                /*
                 * Now initialize the final portion of that block of
-                * descriptors to map the "last PT page".
+                * descriptors to map kptmpa and the "last PT page".
                 */
                pte = &(PA2VA(kstpa, u_int*))
                                [kstsize*NPTEPG - NPTEPG/SG4_LEV3SIZE*2];
@@ -278,14 +278,6 @@
                /*
                 * Initialize Sysptmap
                 */
-               pte = &(PA2VA(kstpa, u_int*))
-                               [kstsize*NPTEPG - NPTEPG/SG4_LEV3SIZE*2];
-               epte = &pte[NPTEPG/SG4_LEV3SIZE];
-               protoste = kptmpa | SG_U | SG_RW | SG_V;
-               while (pte < epte) {
-                       *pte++ = protoste;
-                       protoste += (SG4_LEV3SIZE * sizeof(st_entry_t));
-               }
                pte = PA2VA(kptmpa, u_int *);
                epte = &pte[nptpages];
                protopte = kptpa | PG_RW | PG_CI | PG_V;



Home | Main Index | Thread Index | Old Index