summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2010-02-21 22:23:13 +0000
committeralc <alc@FreeBSD.org>2010-02-21 22:23:13 +0000
commiteeebe8a44933636e1b9b026d098555602bec035c (patch)
tree7d2aed941db11b3239afa7e6a1acbe1bf5fe3a12
parent8f393f2bb8bff4a08d35b626e29002df396f6e71 (diff)
downloadFreeBSD-src-eeebe8a44933636e1b9b026d098555602bec035c.zip
FreeBSD-src-eeebe8a44933636e1b9b026d098555602bec035c.tar.gz
Align the start of the clean submap to a superpage boundary. Although
no superpage mappings are created within the clean submap, aligning the start of the clean submap helps to prevent interference with kmem_alloc()'s use of superpages.
-rw-r--r--sys/vm/vm_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_init.c b/sys/vm/vm_init.c
index e9baf09..fdffb46 100644
--- a/sys/vm/vm_init.c
+++ b/sys/vm/vm_init.c
@@ -186,7 +186,7 @@ again:
panic("startup: table size inconsistency");
clean_map = kmem_suballoc(kernel_map, &kmi->clean_sva, &kmi->clean_eva,
- (long)nbuf * BKVASIZE + (long)nswbuf * MAXPHYS, FALSE);
+ (long)nbuf * BKVASIZE + (long)nswbuf * MAXPHYS, TRUE);
buffer_map = kmem_suballoc(clean_map, &kmi->buffer_sva,
&kmi->buffer_eva, (long)nbuf * BKVASIZE, FALSE);
buffer_map->system_map = 1;
OpenPOWER on IntegriCloud