Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 When mapping bus space, we can use pmap_k...



details:   https://anonhg.NetBSD.org/src/rev/58fcf0074ab2
branches:  trunk
changeset: 473223:58fcf0074ab2
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue May 25 23:30:27 1999 +0000

description:
When mapping bus space, we can use pmap_kenter_pa(), since the pages
are never managed.

diffstat:

 sys/arch/i386/i386/machdep.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r a41194cda3e7 -r 58fcf0074ab2 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Tue May 25 23:19:00 1999 +0000
+++ b/sys/arch/i386/i386/machdep.c      Tue May 25 23:30:27 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.356 1999/05/25 23:19:00 thorpej Exp $    */
+/*     $NetBSD: machdep.c,v 1.357 1999/05/25 23:30:27 thorpej Exp $    */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -2306,8 +2306,12 @@
        *bshp = (bus_space_handle_t)(va + (bpa & PGOFSET));
 
        for (; pa < endpa; pa += NBPG, va += NBPG) {
+#if defined(PMAP_NEW)
+               pmap_kenter_pa(va, pa, VM_PROT_READ | VM_PROT_WRITE);
+#else
                pmap_enter(pmap_kernel(), va, pa,
                    VM_PROT_READ | VM_PROT_WRITE, TRUE, 0);
+#endif
 
                /*
                 * PG_N doesn't exist on 386's, so we assume that



Home | Main Index | Thread Index | Old Index