need to adjust allocation size to properly deal with non PAGE_SIZE
allocations, specifically with allocations < PAGE_SIZE when the code doesn't work properly
This commit is contained in:
parent
a8e642f574
commit
54019b0afe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69641
@ -83,7 +83,7 @@ phys_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
|
||||
* Allocate object and associate it with the pager.
|
||||
*/
|
||||
object = vm_object_allocate(OBJT_PHYS,
|
||||
OFF_TO_IDX(foff + size));
|
||||
OFF_TO_IDX(foff + PAGE_MASK + size));
|
||||
object->handle = handle;
|
||||
TAILQ_INSERT_TAIL(&phys_pager_object_list, object,
|
||||
pager_object_list);
|
||||
|
Loading…
Reference in New Issue
Block a user