From 2d17f907755b3aa9fe882831e72630bf4d69224d Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 9 May 2008 23:31:42 +0000 Subject: [PATCH] Add a stub for pmap_align_superpage() on machines that don't (yet) implement pmap-level support for superpages. --- sys/arm/arm/pmap.c | 10 ++++++++++ sys/ia64/ia64/pmap.c | 10 ++++++++++ sys/mips/mips/pmap.c | 10 ++++++++++ sys/powerpc/powerpc/pmap_dispatch.c | 10 ++++++++++ sys/sparc64/sparc64/pmap.c | 10 ++++++++++ sys/sun4v/sun4v/pmap.c | 10 ++++++++++ 6 files changed, 60 insertions(+) diff --git a/sys/arm/arm/pmap.c b/sys/arm/arm/pmap.c index 9d2247c74cb1..992fb584e434 100644 --- a/sys/arm/arm/pmap.c +++ b/sys/arm/arm/pmap.c @@ -4355,6 +4355,16 @@ pmap_addr_hint(vm_object_t obj, vm_offset_t addr, vm_size_t size) 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 diff --git a/sys/ia64/ia64/pmap.c b/sys/ia64/ia64/pmap.c index cac6d47b8432..68218f60b5b9 100644 --- a/sys/ia64/ia64/pmap.c +++ b/sys/ia64/ia64/pmap.c @@ -2266,6 +2266,16 @@ pmap_addr_hint(vm_object_t obj, vm_offset_t addr, vm_size_t size) 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 diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c index 03cba24b5b23..a55167cbd22e 100644 --- a/sys/mips/mips/pmap.c +++ b/sys/mips/mips/pmap.c @@ -2851,6 +2851,16 @@ pmap_addr_hint(vm_object_t obj, vm_offset_t addr, vm_size_t size) 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) +{ +} + int pmap_pid_dump(int pid); int diff --git a/sys/powerpc/powerpc/pmap_dispatch.c b/sys/powerpc/powerpc/pmap_dispatch.c index eab6689e130c..6b79622c3a1f 100644 --- a/sys/powerpc/powerpc/pmap_dispatch.c +++ b/sys/powerpc/powerpc/pmap_dispatch.c @@ -303,6 +303,16 @@ pmap_addr_hint(vm_object_t obj, vm_offset_t addr, vm_size_t size) 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) +{ +} + /* diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c index ad4d249ee286..a0a622dd50bf 100644 --- a/sys/sparc64/sparc64/pmap.c +++ b/sys/sparc64/sparc64/pmap.c @@ -1984,3 +1984,13 @@ pmap_addr_hint(vm_object_t object, vm_offset_t va, vm_size_t size) 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) +{ +} diff --git a/sys/sun4v/sun4v/pmap.c b/sys/sun4v/sun4v/pmap.c index 1b743744179e..3fe21dda3a03 100644 --- a/sys/sun4v/sun4v/pmap.c +++ b/sys/sun4v/sun4v/pmap.c @@ -430,6 +430,16 @@ pmap_addr_hint(vm_object_t object, vm_offset_t va, vm_size_t size) 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) +{ +} + /* * Bootstrap the system enough to run with virtual memory. */