Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/include/booke Add vsize_t to pmap_md_{un, }m...
details: https://anonhg.NetBSD.org/src/rev/adfb46e14348
branches: trunk
changeset: 778489:adfb46e14348
user: matt <matt%NetBSD.org@localhost>
date: Thu Mar 29 15:44:40 2012 +0000
description:
Add vsize_t to pmap_md_{un,}map_poolpage.
Add pmap_kvptefill prototype.
Slightly change pmap_bootstrap prototype.
diffstat:
sys/arch/powerpc/include/booke/pmap.h | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diffs (46 lines):
diff -r ed82d45cdea9 -r adfb46e14348 sys/arch/powerpc/include/booke/pmap.h
--- a/sys/arch/powerpc/include/booke/pmap.h Thu Mar 29 15:42:59 2012 +0000
+++ b/sys/arch/powerpc/include/booke/pmap.h Thu Mar 29 15:44:40 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.8 2011/06/30 00:52:59 matt Exp $ */
+/* $NetBSD: pmap.h,v 1.9 2012/03/29 15:44:40 matt Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -44,6 +44,10 @@
#error this file should not be included by loadable kernel modules
#endif
+#ifdef _KERNEL_OPT
+#include "opt_pmap.h"
+#endif
+
#include <sys/cpu.h>
#include <sys/kcore.h>
#include <uvm/uvm_page.h>
@@ -77,7 +81,8 @@
#ifdef __PMAP_PRIVATE
struct vm_page *
pmap_md_alloc_poolpage(int flags);
-vaddr_t pmap_md_map_poolpage(paddr_t);
+vaddr_t pmap_md_map_poolpage(paddr_t, vsize_t);
+void pmap_md_unmap_poolpage(vaddr_t, vsize_t);
bool pmap_md_direct_mapped_vaddr_p(vaddr_t);
bool pmap_md_io_vaddr_p(vaddr_t);
paddr_t pmap_md_direct_mapped_vaddr_to_paddr(vaddr_t);
@@ -85,10 +90,14 @@
void pmap_md_init(void);
bool pmap_md_tlb_check_entry(void *, vaddr_t, tlb_asid_t, pt_entry_t);
+
+#ifdef PMAP_MINIMALTLB
+vaddr_t pmap_kvptefill(vaddr_t, vaddr_t, pt_entry_t);
+#endif
#endif
void pmap_md_page_syncicache(struct vm_page *, __cpuset_t);
-void pmap_bootstrap(vaddr_t, vaddr_t, const phys_ram_seg_t *, size_t);
+vaddr_t pmap_bootstrap(vaddr_t, vaddr_t, phys_ram_seg_t *, size_t);
bool pmap_extract(struct pmap *, vaddr_t, paddr_t *);
static inline paddr_t vtophys(vaddr_t);
Home |
Main Index |
Thread Index |
Old Index