From eeebe8a44933636e1b9b026d098555602bec035c Mon Sep 17 00:00:00 2001 From: alc Date: Sun, 21 Feb 2010 22:23:13 +0000 Subject: 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. --- sys/vm/vm_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/vm/vm_init.c') 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; -- cgit v1.1