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.
This commit is contained in:
Alan Cox 2010-02-21 22:23:13 +00:00
parent f41c8c170f
commit fd776d18a0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=204181

View File

@ -186,7 +186,7 @@ vm_ksubmap_init(struct kva_md_info *kmi)
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;