Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/include/arm32 Enable direct-mapped poolpages if...



details:   https://anonhg.NetBSD.org/src/rev/b907d2b78e6d
branches:  trunk
changeset: 783235:b907d2b78e6d
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Dec 12 00:29:17 2012 +0000

description:
Enable direct-mapped poolpages if __HAVE_MM_MD_DIRECT_MAPPED_PHYS is defined.

diffstat:

 sys/arch/arm/include/arm32/pmap.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 0e8b81bf1778 -r b907d2b78e6d sys/arch/arm/include/arm32/pmap.h
--- a/sys/arch/arm/include/arm32/pmap.h Wed Dec 12 00:05:05 2012 +0000
+++ b/sys/arch/arm/include/arm32/pmap.h Wed Dec 12 00:29:17 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.117 2012/12/10 08:19:59 matt Exp $  */
+/*     $NetBSD: pmap.h,v 1.118 2012/12/12 00:29:17 matt Exp $  */
 
 /*
  * Copyright (c) 2002, 2003 Wasabi Systems, Inc.
@@ -898,6 +898,8 @@
 #ifdef PMAP_NEED_ALLOC_POOLPAGE
 struct vm_page *arm_pmap_alloc_poolpage(int);
 #define        PMAP_ALLOC_POOLPAGE     arm_pmap_alloc_poolpage
+#endif
+#if defined(PMAP_NEED_ALLOC_POOLPAGE) || defined(__HAVE_MM_MD_DIRECT_MAPPED_PHYS)
 #define        PMAP_MAP_POOLPAGE(pa) \
         ((vaddr_t)((paddr_t)(pa) - physical_start + KERNEL_BASE))
 #define PMAP_UNMAP_POOLPAGE(va) \



Home | Main Index | Thread Index | Old Index