From 54019b0afe08e533d37817dab5604e7d8e856d52 Mon Sep 17 00:00:00 2001 From: Alfred Perlstein Date: Tue, 5 Dec 2000 22:22:24 +0000 Subject: [PATCH] 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 --- sys/vm/phys_pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/phys_pager.c b/sys/vm/phys_pager.c index f2980db67598..153dd2f99514 100644 --- a/sys/vm/phys_pager.c +++ b/sys/vm/phys_pager.c @@ -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);