Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm Add a comment explaining why using pmap_kenter_pa() ...



details:   https://anonhg.NetBSD.org/src/rev/8b3b4e495026
branches:  trunk
changeset: 473213:8b3b4e495026
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue May 25 01:34:13 1999 +0000

description:
Add a comment explaining why using pmap_kenter_pa() is safe here.

diffstat:

 sys/uvm/uvm_page.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 94dfe4765cd7 -r 8b3b4e495026 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c        Tue May 25 00:27:45 1999 +0000
+++ b/sys/uvm/uvm_page.c        Tue May 25 01:34:13 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page.c,v 1.22 1999/05/25 00:09:01 thorpej Exp $    */
+/*     $NetBSD: uvm_page.c,v 1.23 1999/05/25 01:34:13 thorpej Exp $    */
 
 /* 
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -440,6 +440,10 @@
 
                /* XXX: should be wired, but some pmaps don't like that ... */
 #if defined(PMAP_NEW)
+               /*
+                * Note this memory is no longer managed, so using
+                * pmap_kenter is safe.
+                */
                pmap_kenter_pa(vaddr, paddr, VM_PROT_READ|VM_PROT_WRITE);
 #else
                pmap_enter(pmap_kernel(), vaddr, paddr,



Home | Main Index | Thread Index | Old Index