aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2002-08-12 10:35:32 +0000
committerIan Dowse <iedowse@FreeBSD.org>2002-08-12 10:35:32 +0000
commitd8a0d0795b0c4743a4fcb6d7a40029e9a7a68c55 (patch)
treefee91acd1849a2fee4abafacf6e2bc8f9fd08368 /sys/i386
parente179b40f143d17822ba8bc0080385a23c182b20b (diff)
downloadsrc-d8a0d0795b0c4743a4fcb6d7a40029e9a7a68c55.tar.gz
src-d8a0d0795b0c4743a4fcb6d7a40029e9a7a68c55.zip
Use roundup2() to avoid a problem where pmap_growkernel was unable
to extend the kernel VM to the maximum possible address of 4G-4M. PR: i386/22441 Submitted by: Bill Carpenter <carp@world.std.com> Reviewed by: alc
Notes
Notes: svn path=/head/; revision=101721
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index 8caf4151a32c..6aa04750b9b5 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -1501,7 +1501,7 @@ pmap_growkernel(vm_offset_t addr)
nkpt++;
}
}
- addr = (addr + PAGE_SIZE * NPTEPG) & ~(PAGE_SIZE * NPTEPG - 1);
+ addr = roundup2(addr, PAGE_SIZE * NPTEPG);
while (kernel_vm_end < addr) {
if (pdir_pde(PTD, kernel_vm_end)) {
kernel_vm_end = (kernel_vm_end + PAGE_SIZE * NPTEPG) & ~(PAGE_SIZE * NPTEPG - 1);