Add a stub for pmap_align_superpage() on machines that don't (yet)

implement pmap-level support for superpages.
This commit is contained in:
Alan Cox 2008-05-09 23:31:42 +00:00
parent 1d60f0ffa3
commit 2d17f90775
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178893
6 changed files with 60 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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)
{
}
/*

View file

@ -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)
{
}

View file

@ -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.
*/