MFC r197317
When superpages are enabled, add the 2 or 4MB page size to the array of supported page sizes.
This commit is contained in:
parent
ebc91405bd
commit
13529df13b
@ -663,6 +663,11 @@ pmap_init(void)
|
||||
* Are large page mappings enabled?
|
||||
*/
|
||||
TUNABLE_INT_FETCH("vm.pmap.pg_ps_enabled", &pg_ps_enabled);
|
||||
if (pg_ps_enabled) {
|
||||
KASSERT(MAXPAGESIZES > 1 && pagesizes[1] == 0,
|
||||
("pmap_init: can't assign to pagesizes[1]"));
|
||||
pagesizes[1] = NBPDR;
|
||||
}
|
||||
|
||||
/*
|
||||
* Calculate the size of the pv head table for superpages.
|
||||
|
@ -673,6 +673,11 @@ pmap_init(void)
|
||||
* Are large page mappings enabled?
|
||||
*/
|
||||
TUNABLE_INT_FETCH("vm.pmap.pg_ps_enabled", &pg_ps_enabled);
|
||||
if (pg_ps_enabled) {
|
||||
KASSERT(MAXPAGESIZES > 1 && pagesizes[1] == 0,
|
||||
("pmap_init: can't assign to pagesizes[1]"));
|
||||
pagesizes[1] = NBPDR;
|
||||
}
|
||||
|
||||
/*
|
||||
* Calculate the size of the pv head table for superpages.
|
||||
|
Loading…
x
Reference in New Issue
Block a user