Source-Changes-HG archive

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

[src/trunk]: src/sys/arch No need to initialize lwp0 u-area in pmap_bootstrap()



details:   https://anonhg.NetBSD.org/src/rev/b52e09946ef3
branches:  trunk
changeset: 749627:b52e09946ef3
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Dec 04 18:32:31 2009 +0000

description:
No need to initialize lwp0 u-area in pmap_bootstrap()
since it will be done in pmap_bootstrap_finalize().

diffstat:

 sys/arch/cesfic/cesfic/pmap_bootstrap.c   |  15 ++-------------
 sys/arch/hp300/hp300/pmap_bootstrap.c     |  15 ++-------------
 sys/arch/luna68k/luna68k/pmap_bootstrap.c |  15 ++-------------
 sys/arch/mac68k/mac68k/pmap_bootstrap.c   |  16 ++--------------
 sys/arch/mvme68k/mvme68k/pmap_bootstrap.c |  15 ++-------------
 sys/arch/news68k/news68k/pmap_bootstrap.c |  15 ++-------------
 sys/arch/next68k/next68k/pmap_bootstrap.c |  15 ++-------------
 sys/arch/x68k/x68k/pmap_bootstrap.c       |  15 ++-------------
 8 files changed, 16 insertions(+), 105 deletions(-)

diffs (289 lines):

diff -r 5caabdc9129d -r b52e09946ef3 sys/arch/cesfic/cesfic/pmap_bootstrap.c
--- a/sys/arch/cesfic/cesfic/pmap_bootstrap.c   Fri Dec 04 18:11:14 2009 +0000
+++ b/sys/arch/cesfic/cesfic/pmap_bootstrap.c   Fri Dec 04 18:32:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_bootstrap.c,v 1.19 2009/12/04 18:06:28 tsutsui Exp $      */
+/*     $NetBSD: pmap_bootstrap.c,v 1.20 2009/12/04 18:32:31 tsutsui Exp $      */
 
 /* 
  * Copyright (c) 1991, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.19 2009/12/04 18:06:28 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.20 2009/12/04 18:32:31 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -353,17 +353,6 @@
            (pt_entry_t *)m68k_ptob((NPTEPG - 2) * NPTEPG);
 
        /*
-        * Setup u-area for lwp 0.
-        */
-       /*
-        * Zero the u-area.
-        * NOTE: `pte' and `epte' aren't PTEs here.
-        */
-       pte = (u_int *)lwp0upa;
-       epte = (u_int *)(lwp0upa + USPACE);
-       while (pte < epte)
-               *pte++ = 0;
-       /*
         * Remember the u-area address so it can be loaded in the lwp0
         * via uvm_lwp_setuarea() later in pmap_bootstrap_finalize().
         */
diff -r 5caabdc9129d -r b52e09946ef3 sys/arch/hp300/hp300/pmap_bootstrap.c
--- a/sys/arch/hp300/hp300/pmap_bootstrap.c     Fri Dec 04 18:11:14 2009 +0000
+++ b/sys/arch/hp300/hp300/pmap_bootstrap.c     Fri Dec 04 18:32:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_bootstrap.c,v 1.40 2009/12/02 15:51:12 tsutsui Exp $      */
+/*     $NetBSD: pmap_bootstrap.c,v 1.41 2009/12/04 18:32:31 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1991, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.40 2009/12/02 15:51:12 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.41 2009/12/04 18:32:31 tsutsui Exp $");
 
 #include <sys/param.h>
 
@@ -394,17 +394,6 @@
                (vaddr_t)RELOC(intiobase, char *) + MMUBASE;
 
        /*
-        * Setup u-area for lwp 0.
-        */
-       /*
-        * Zero the u-area.
-        * NOTE: `pte' and `epte' aren't PTEs here.
-        */
-       pte = (u_int *)lwp0upa;
-       epte = (u_int *)(lwp0upa + USPACE);
-       while (pte < epte)
-               *pte++ = 0;
-       /*
         * Remember the u-area address so it can be loaded in the lwp0
         * via uvm_lwp_setuarea() later in pmap_bootstrap_finalize().
         */
diff -r 5caabdc9129d -r b52e09946ef3 sys/arch/luna68k/luna68k/pmap_bootstrap.c
--- a/sys/arch/luna68k/luna68k/pmap_bootstrap.c Fri Dec 04 18:11:14 2009 +0000
+++ b/sys/arch/luna68k/luna68k/pmap_bootstrap.c Fri Dec 04 18:32:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_bootstrap.c,v 1.20 2009/12/04 18:06:28 tsutsui Exp $      */
+/*     $NetBSD: pmap_bootstrap.c,v 1.21 2009/12/04 18:32:31 tsutsui Exp $      */
 
 /* 
  * Copyright (c) 1991, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.20 2009/12/04 18:06:28 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.21 2009/12/04 18:32:31 tsutsui Exp $");
 
 #include <sys/param.h>
 
@@ -337,17 +337,6 @@
        RELOC(Sysmap, pt_entry_t *) = (pt_entry_t *)SYSMAP_VA;
 
        /*
-        * Setup u-area for lwp 0.
-        */
-       /*
-        * Zero the u-area.
-        * NOTE: `pte' and `epte' aren't PTEs here.
-        */
-       pte = (u_int *)lwp0upa;
-       epte = (u_int *)(lwp0upa + USPACE);
-       while (pte < epte)
-               *pte++ = 0;
-       /*
         * Remember the u-area address so it can be loaded in the lwp0
         * via uvm_lwp_setuarea() later in pmap_bootstrap_finalize().
         */
diff -r 5caabdc9129d -r b52e09946ef3 sys/arch/mac68k/mac68k/pmap_bootstrap.c
--- a/sys/arch/mac68k/mac68k/pmap_bootstrap.c   Fri Dec 04 18:11:14 2009 +0000
+++ b/sys/arch/mac68k/mac68k/pmap_bootstrap.c   Fri Dec 04 18:32:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_bootstrap.c,v 1.81 2009/12/04 16:57:18 tsutsui Exp $      */
+/*     $NetBSD: pmap_bootstrap.c,v 1.82 2009/12/04 18:32:31 tsutsui Exp $      */
 
 /* 
  * Copyright (c) 1991, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.81 2009/12/04 16:57:18 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.82 2009/12/04 18:32:31 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -399,18 +399,6 @@
        Sysmap = (pt_entry_t *)m68k_ptob((NPTEPG - 1) * NPTEPG);
 
        /*
-        * Setup u-area for lwp 0.
-        */
-       /*
-        * Zero the u-area.
-        * NOTE: `pte' and `epte' aren't PTEs here.
-        */
-       pte = PA2VA(lwp0upa, u_int *);
-       epte = (u_int *)(PA2VA(lwp0upa, u_int) + USPACE);
-       while (pte < epte)
-               *pte++ = 0;
-
-       /*
         * Remember the u-area address so it can be loaded in the lwp0
         * via uvm_lwp_setuarea() later in pmap_bootstrap_finalize().
         */
diff -r 5caabdc9129d -r b52e09946ef3 sys/arch/mvme68k/mvme68k/pmap_bootstrap.c
--- a/sys/arch/mvme68k/mvme68k/pmap_bootstrap.c Fri Dec 04 18:11:14 2009 +0000
+++ b/sys/arch/mvme68k/mvme68k/pmap_bootstrap.c Fri Dec 04 18:32:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_bootstrap.c,v 1.34 2009/12/04 18:11:14 tsutsui Exp $      */
+/*     $NetBSD: pmap_bootstrap.c,v 1.35 2009/12/04 18:32:31 tsutsui Exp $      */
 
 /* 
  * Copyright (c) 1991, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.34 2009/12/04 18:11:14 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.35 2009/12/04 18:32:31 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/kcore.h>
@@ -395,17 +395,6 @@
            (pt_entry_t *)m68k_ptob((NPTEPG - 2) * NPTEPG);
 
        /*
-        * Setup u-area for lwp 0.
-        */
-       /*
-        * Zero the u-area.
-        * NOTE: `pte' and `epte' aren't PTEs here.
-        */
-       pte = (u_int *)lwp0upa;
-       epte = (u_int *)(lwp0upa + USPACE);
-       while (pte < epte)
-               *pte++ = 0;
-       /*
         * Remember the u-area address so it can be loaded in the lwp0
         * via uvm_lwp_setuarea() later in pmap_bootstrap_finalize().
         */
diff -r 5caabdc9129d -r b52e09946ef3 sys/arch/news68k/news68k/pmap_bootstrap.c
--- a/sys/arch/news68k/news68k/pmap_bootstrap.c Fri Dec 04 18:11:14 2009 +0000
+++ b/sys/arch/news68k/news68k/pmap_bootstrap.c Fri Dec 04 18:32:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_bootstrap.c,v 1.24 2009/12/02 15:54:19 tsutsui Exp $      */
+/*     $NetBSD: pmap_bootstrap.c,v 1.25 2009/12/04 18:32:31 tsutsui Exp $      */
 
 /* 
  * Copyright (c) 1991, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.24 2009/12/02 15:54:19 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.25 2009/12/04 18:32:31 tsutsui Exp $");
 
 #include <sys/param.h>
 
@@ -361,17 +361,6 @@
            (pt_entry_t *)m68k_ptob((NPTEPG - 1) * NPTEPG);
 
        /*
-        * Setup u-area for lwp 0.
-        */
-       /*
-        * Zero the u-area.
-        * NOTE: `pte' and `epte' aren't PTEs here.
-        */
-       pte = (u_int *)lwp0upa;
-       epte = (u_int *)(lwp0upa + USPACE);
-       while (pte < epte)
-               *pte++ = 0;
-       /*
         * Remember the u-area address so it can be loaded in the lwp0
         * via uvm_lwp_setuarea() later in pmap_bootstrap_finalize().
         */
diff -r 5caabdc9129d -r b52e09946ef3 sys/arch/next68k/next68k/pmap_bootstrap.c
--- a/sys/arch/next68k/next68k/pmap_bootstrap.c Fri Dec 04 18:11:14 2009 +0000
+++ b/sys/arch/next68k/next68k/pmap_bootstrap.c Fri Dec 04 18:32:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_bootstrap.c,v 1.29 2009/12/04 18:06:28 tsutsui Exp $      */
+/*     $NetBSD: pmap_bootstrap.c,v 1.30 2009/12/04 18:32:31 tsutsui Exp $      */
 
 /*
  * This file was taken from mvme68k/mvme68k/pmap_bootstrap.c
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.29 2009/12/04 18:06:28 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.30 2009/12/04 18:32:31 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/kcore.h>
@@ -439,17 +439,6 @@
            (pt_entry_t *)m68k_ptob((NPTEPG - 2) * NPTEPG);
 
        /*
-        * Setup u-area for lwp 0.
-        */
-       /*
-        * Zero the u-area.
-        * NOTE: `pte' and `epte' aren't PTEs here.
-        */
-       pte = (u_int *)lwp0upa;
-       epte = (u_int *)(lwp0upa + USPACE);
-       while (pte < epte)
-               *pte++ = 0;
-       /*
         * Remember the u-area address so it can be loaded in the lwp0
         * via uvm_lwp_setuarea() later in pmap_bootstrap_finalize().
         */
diff -r 5caabdc9129d -r b52e09946ef3 sys/arch/x68k/x68k/pmap_bootstrap.c
--- a/sys/arch/x68k/x68k/pmap_bootstrap.c       Fri Dec 04 18:11:14 2009 +0000
+++ b/sys/arch/x68k/x68k/pmap_bootstrap.c       Fri Dec 04 18:32:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_bootstrap.c,v 1.43 2009/12/04 18:06:28 tsutsui Exp $      */
+/*     $NetBSD: pmap_bootstrap.c,v 1.44 2009/12/04 18:32:31 tsutsui Exp $      */
 
 /* 
  * Copyright (c) 1991, 1993
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.43 2009/12/04 18:06:28 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.44 2009/12/04 18:32:31 tsutsui Exp $");
 
 #include "opt_m680x0.h"
 
@@ -351,17 +351,6 @@
            (pt_entry_t *)m68k_ptob((NPTEPG - 1) * NPTEPG);
 
        /*
-        * Setup u-area for lwp 0.
-        */
-       /*
-        * Zero the u-area.
-        * NOTE: `pte' and `epte' aren't PTEs here.
-        */
-       pte = (u_int *)lwp0upa;
-       epte = (u_int *)(lwp0upa + USPACE);
-       while (pte < epte)
-               *pte++ = 0;
-       /*
         * Remember the u-area address so it can be loaded in the lwp0
         * via uvm_lwp_setuarea() later in pmap_bootstrap_finalize().
         */



Home | Main Index | Thread Index | Old Index