Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh5/sh5 Ensure the temporary mapping for /dev/mem i...



details:   https://anonhg.NetBSD.org/src/rev/5e76369beb62
branches:  trunk
changeset: 537892:5e76369beb62
user:      scw <scw%NetBSD.org@localhost>
date:      Mon Oct 07 15:05:58 2002 +0000

description:
Ensure the temporary mapping for /dev/mem is flagged as unmanaged.

diffstat:

 sys/arch/sh5/sh5/mem.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r ce8e8e2ff51d -r 5e76369beb62 sys/arch/sh5/sh5/mem.c
--- a/sys/arch/sh5/sh5/mem.c    Mon Oct 07 15:02:07 2002 +0000
+++ b/sys/arch/sh5/sh5/mem.c    Mon Oct 07 15:05:58 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mem.c,v 1.2 2002/09/06 13:18:43 gehenna Exp $  */
+/*     $NetBSD: mem.c,v 1.3 2002/10/07 15:05:58 scw Exp $      */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -44,7 +44,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.2 2002/09/06 13:18:43 gehenna Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mem.c,v 1.3 2002/10/07 15:05:58 scw Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -111,8 +111,8 @@
                        v = uio->uio_offset;
                        prot = uio->uio_rw == UIO_READ ? VM_PROT_READ :
                            VM_PROT_WRITE;
-                       pmap_enter(pmap_kernel(), vmmap,
-                           trunc_page(v), prot, prot|PMAP_WIRED);
+                       pmap_enter(pmap_kernel(), vmmap, trunc_page(v), prot,
+                           prot | PMAP_WIRED | PMAP_UNMANAGED);
                        pmap_update(pmap_kernel());
                        o = uio->uio_offset & PGOFSET;
                        c = min(uio->uio_resid, (int)(NBPG - o));



Home | Main Index | Thread Index | Old Index