Source-Changes-HG archive

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

[src/uebayasi-xip]: src/sys/uvm Introduce PMAP_UNCACHEABLE, a flag to tell pm...



details:   https://anonhg.NetBSD.org/src/rev/095414dacbac
branches:  uebayasi-xip
changeset: 751681:095414dacbac
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Tue Apr 27 06:33:23 2010 +0000

description:
Introduce PMAP_UNCACHEABLE, a flag to tell pmap_enter(9) to enter a H/W
mapping as cache disabled, even for managed memory and device pages.

(In the long run, we should pass more explicit control from UVM rather
than the current way that pmap(9) checks if a given paddr_t is managed
(== contained in one of struct vm_physseg [] arrays).)

diffstat:

 sys/uvm/uvm_pmap.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r ef7c1feb1616 -r 095414dacbac sys/uvm/uvm_pmap.h
--- a/sys/uvm/uvm_pmap.h        Tue Apr 27 04:32:44 2010 +0000
+++ b/sys/uvm/uvm_pmap.h        Tue Apr 27 06:33:23 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_pmap.h,v 1.32 2009/11/07 07:27:50 cegger Exp $     */
+/*     $NetBSD: uvm_pmap.h,v 1.32.2.1 2010/04/27 06:33:23 uebayasi Exp $       */
 
 /*
  * Copyright (c) 1991, 1993
@@ -108,6 +108,7 @@
 #else
 #define        PMAP_KMPAGE     0x00000000
 #endif /* PMAP_ENABLE_PMAP_KMPAGE */
+#define        PMAP_UNCACHEABLE 0x00000080     /* disable cache for managed pages */
 
 #define        PMAP_MD_MASK    0xff000000      /* Machine-dependent bits */
 



Home | Main Index | Thread Index | Old Index