svn commit: r189088 - in stable/7/sys: . arm/arm contrib/pf
dev/ath/ath_hal dev/cxgb ia64/ia64 powerpc/powerpc
sparc64/sparc64 sun4v/sun4v
John Baldwin
jhb at FreeBSD.org
Thu Feb 26 12:38:39 PST 2009
Author: jhb
Date: Thu Feb 26 20:38:37 2009
New Revision: 189088
URL: http://svn.freebsd.org/changeset/base/189088
Log:
MFC: Add a stub for pmap_align_superpage() on machines that don't (yet)
implement pmap-level support for superpages.
Pointy hat to: jhb
Modified:
stable/7/sys/ (props changed)
stable/7/sys/arm/arm/pmap.c
stable/7/sys/contrib/pf/ (props changed)
stable/7/sys/dev/ath/ath_hal/ (props changed)
stable/7/sys/dev/cxgb/ (props changed)
stable/7/sys/ia64/ia64/pmap.c
stable/7/sys/powerpc/powerpc/pmap_dispatch.c
stable/7/sys/sparc64/sparc64/pmap.c
stable/7/sys/sun4v/sun4v/pmap.c
Modified: stable/7/sys/arm/arm/pmap.c
==============================================================================
--- stable/7/sys/arm/arm/pmap.c Thu Feb 26 20:32:11 2009 (r189087)
+++ stable/7/sys/arm/arm/pmap.c Thu Feb 26 20:38:37 2009 (r189088)
@@ -3829,7 +3829,8 @@ pmap_pinit(pmap_t pmap)
bzero(&pmap->pm_stats, sizeof pmap->pm_stats);
pmap->pm_stats.resident_count = 1;
if (vector_page < KERNBASE) {
- pmap_enter(pmap, vector_page, PHYS_TO_VM_PAGE(systempage.pv_pa),
+ pmap_enter(pmap, vector_page,
+ VM_PROT_READ, PHYS_TO_VM_PAGE(systempage.pv_pa),
VM_PROT_READ, 1);
}
return (1);
@@ -4559,6 +4560,16 @@ pmap_addr_hint(vm_object_t obj, vm_offse
return(addr);
}
+/*
+ * Increase the starting virtual address of the given mapping if a
+ * different alignment might result in more superpage mappings.
+ */
+void
+pmap_align_superpage(vm_object_t object, vm_ooffset_t offset,
+ vm_offset_t *addr, vm_size_t size)
+{
+}
+
/*
* Map a set of physical memory pages into the kernel virtual
Modified: stable/7/sys/ia64/ia64/pmap.c
==============================================================================
--- stable/7/sys/ia64/ia64/pmap.c Thu Feb 26 20:32:11 2009 (r189087)
+++ stable/7/sys/ia64/ia64/pmap.c Thu Feb 26 20:38:37 2009 (r189088)
@@ -2237,6 +2237,16 @@ pmap_addr_hint(vm_object_t obj, vm_offse
return addr;
}
+/*
+ * Increase the starting virtual address of the given mapping if a
+ * different alignment might result in more superpage mappings.
+ */
+void
+pmap_align_superpage(vm_object_t object, vm_ooffset_t offset,
+ vm_offset_t *addr, vm_size_t size)
+{
+}
+
#include "opt_ddb.h"
#ifdef DDB
Modified: stable/7/sys/powerpc/powerpc/pmap_dispatch.c
==============================================================================
--- stable/7/sys/powerpc/powerpc/pmap_dispatch.c Thu Feb 26 20:32:11 2009 (r189087)
+++ stable/7/sys/powerpc/powerpc/pmap_dispatch.c Thu Feb 26 20:38:37 2009 (r189088)
@@ -296,6 +296,16 @@ pmap_addr_hint(vm_object_t obj, vm_offse
return (MMU_ADDR_HINT(mmu_obj, obj, addr, size));
}
+/*
+ * Increase the starting virtual address of the given mapping if a
+ * different alignment might result in more superpage mappings.
+ */
+void
+pmap_align_superpage(vm_object_t object, vm_ooffset_t offset,
+ vm_offset_t *addr, vm_size_t size)
+{
+}
+
/*
Modified: stable/7/sys/sparc64/sparc64/pmap.c
==============================================================================
--- stable/7/sys/sparc64/sparc64/pmap.c Thu Feb 26 20:32:11 2009 (r189087)
+++ stable/7/sys/sparc64/sparc64/pmap.c Thu Feb 26 20:38:37 2009 (r189088)
@@ -1963,3 +1963,13 @@ pmap_addr_hint(vm_object_t object, vm_of
return (va);
}
+
+/*
+ * Increase the starting virtual address of the given mapping if a
+ * different alignment might result in more superpage mappings.
+ */
+void
+pmap_align_superpage(vm_object_t object, vm_ooffset_t offset,
+ vm_offset_t *addr, vm_size_t size)
+{
+}
Modified: stable/7/sys/sun4v/sun4v/pmap.c
==============================================================================
--- stable/7/sys/sun4v/sun4v/pmap.c Thu Feb 26 20:32:11 2009 (r189087)
+++ stable/7/sys/sun4v/sun4v/pmap.c Thu Feb 26 20:38:37 2009 (r189088)
@@ -431,6 +431,16 @@ pmap_addr_hint(vm_object_t object, vm_of
}
/*
+ * Increase the starting virtual address of the given mapping if a
+ * different alignment might result in more superpage mappings.
+ */
+void
+pmap_align_superpage(vm_object_t object, vm_ooffset_t offset,
+ vm_offset_t *addr, vm_size_t size)
+{
+}
+
+/*
* Bootstrap the system enough to run with virtual memory.
*/
void
More information about the svn-src-stable-7
mailing list