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:
parent
f41c8c170f
commit
fd776d18a0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user