Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mvme68k/mvme68k Put somehow missed code part in rev...



details:   https://anonhg.NetBSD.org/src/rev/117a90427baa
branches:  trunk
changeset: 760064:117a90427baa
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Dec 25 16:14:44 2010 +0000

description:
Put somehow missed code part in rev 1.36:
> Allocate lwp0upa (PA of lwp0 uarea) right after kernel rather than
> between other page tables to use different mappings for ste/pte pages
> as well as amiga and atari.  Should resolve XXX comments in next68k and x68k.

diffstat:

 sys/arch/mvme68k/mvme68k/pmap_bootstrap.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 2e6d8eee3dac -r 117a90427baa sys/arch/mvme68k/mvme68k/pmap_bootstrap.c
--- a/sys/arch/mvme68k/mvme68k/pmap_bootstrap.c Sat Dec 25 16:11:11 2010 +0000
+++ b/sys/arch/mvme68k/mvme68k/pmap_bootstrap.c Sat Dec 25 16:14:44 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_bootstrap.c,v 1.43 2010/12/25 15:29:34 tsutsui Exp $      */
+/*     $NetBSD: pmap_bootstrap.c,v 1.44 2010/12/25 16:14:44 tsutsui Exp $      */
 
 /* 
  * Copyright (c) 1991, 1993
@@ -38,7 +38,7 @@
 #include "opt_m68k_arch.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.43 2010/12/25 15:29:34 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_bootstrap.c,v 1.44 2010/12/25 16:14:44 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/kcore.h>
@@ -122,6 +122,9 @@
         * The KVA corresponding to any of these PAs is:
         *      (PA - firstpa + KERNBASE).
         */
+       lwp0upa = nextpa;
+       nextpa += USPACE;
+
        iiomappages = m68k_btop(RELOC(intiotop_phys, u_int) -
            RELOC(intiobase_phys, u_int));
 
@@ -137,8 +140,6 @@
        nextpa += PAGE_SIZE;
        lkptpa = nextpa;
        nextpa += PAGE_SIZE;
-       lwp0upa = nextpa;
-       nextpa += USPACE;
        kptpa = nextpa;
        nptpages = RELOC(Sysptsize, int) + (iiomappages + NPTEPG - 1) / NPTEPG;
        nextpa += nptpages * PAGE_SIZE;



Home | Main Index | Thread Index | Old Index