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:
Marcel Moolenaar 2003-02-15 20:58:32 +00:00
parent 814f5c92d7
commit 89c1ecfade

View File

@ -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;