diff options
author | cognet <cognet@FreeBSD.org> | 2013-08-09 21:53:02 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2013-08-09 21:53:02 +0000 |
commit | 634eb147bd317608829c6d52ccbd54f9492c2566 (patch) | |
tree | 8599706cb256a274db09f06d276bcd438f2f4026 /sys/arm/include | |
parent | 8f3909e991e98b9e98910115153e0f6eff39861c (diff) | |
download | FreeBSD-src-634eb147bd317608829c6d52ccbd54f9492c2566.zip FreeBSD-src-634eb147bd317608829c6d52ccbd54f9492c2566.tar.gz |
Make sure vm_kmem_size is aligned on a page boundary, since that's what vmem
expects.
Diffstat (limited to 'sys/arm/include')
-rw-r--r-- | sys/arm/include/vmparam.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/include/vmparam.h b/sys/arm/include/vmparam.h index 598cf42..4c0efd3 100644 --- a/sys/arm/include/vmparam.h +++ b/sys/arm/include/vmparam.h @@ -165,8 +165,8 @@ * Ceiling on the size of the kmem submap: 40% of the kernel map. */ #ifndef VM_KMEM_SIZE_MAX -#define VM_KMEM_SIZE_MAX ((vm_max_kernel_address - \ - VM_MIN_KERNEL_ADDRESS + 1) * 2 / 5) +#define VM_KMEM_SIZE_MAX (((vm_max_kernel_address - \ + VM_MIN_KERNEL_ADDRESS + 1) * 2 / 5) &~ PAGE_MASK) #endif #ifdef ARM_USE_SMALL_ALLOC |