Fix misuse of Maxmem in the calculation of the VHPT size. Maxmem
is already in pages, so we should not convert from bytes to pages. The result of this bug was bad scaling of the VHPT relative to the available memory. Submitted by: Arun Sharma <arun@sharma-home.net>
This commit is contained in:
parent
814f5c92d7
commit
89c1ecfade
@ -362,7 +362,7 @@ pmap_bootstrap()
|
||||
* enough sparse, causing us to (try to) create a huge VHPT.
|
||||
*/
|
||||
vhpt_size = 15;
|
||||
while ((1<<vhpt_size) < ia64_btop(Maxmem) * 32)
|
||||
while ((1<<vhpt_size) < Maxmem * 32)
|
||||
vhpt_size++;
|
||||
|
||||
vhpt_base = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user