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 Add PMAP_MAP_POOLPAGE / PMAP_UNMA...



details:   https://anonhg.NetBSD.org/src/rev/64b5383c8535
branches:  trunk
changeset: 782127:64b5383c8535
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Oct 17 20:15:41 2012 +0000

description:
Add PMAP_MAP_POOLPAGE / PMAP_UNMAP_POOLPAGE if PMAP_NEED_ALLOC_POOLPAGE is
defined.

diffstat:

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

diffs (24 lines):

diff -r b72091798da2 -r 64b5383c8535 sys/arch/arm/include/arm32/pmap.h
--- a/sys/arch/arm/include/arm32/pmap.h Wed Oct 17 18:55:43 2012 +0000
+++ b/sys/arch/arm/include/arm32/pmap.h Wed Oct 17 20:15:41 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.113 2012/10/17 18:52:15 matt Exp $  */
+/*     $NetBSD: pmap.h,v 1.114 2012/10/17 20:15:41 matt Exp $  */
 
 /*
  * Copyright (c) 2002, 2003 Wasabi Systems, Inc.
@@ -887,8 +887,13 @@
  */
 #define        POOL_VTOPHYS(va)        vtophys((vaddr_t) (va))
 #ifdef PMAP_NEED_ALLOC_POOLPAGE
+extern paddr_t physical_start;
+struct vm_page *arm_pmap_alloc_poolpage(int);
 #define        PMAP_ALLOC_POOLPAGE     arm_pmap_alloc_poolpage
-struct vm_page *arm_pmap_alloc_poolpage(int);
+#define        PMAP_MAP_POOLPAGE(pa) \
+        ((vaddr_t)((paddr_t)(pa) - physical_start + KERNEL_BASE))
+#define PMAP_UNMAP_POOLPAGE(va) \
+        ((paddr_t)((vaddr_t)(va) - KERNEL_BASE + physical_start))
 #endif
 
 #ifndef _LOCORE



Home | Main Index | Thread Index | Old Index