pc64: increase sizes of physical memory bank maps

number of bank slots in Conf.mem[4] was too small
for kenjis machine, set it to maximum 16 (the
size of the RAM map in pc64/memory.c).

also increasing the UPA memory map to 64. the
e820 map on my x200s has 31 entries and many
holes. this gets rid of the "mapfree: ... losing"
messages on boot.
This commit is contained in:
cinap_lenrek 2014-05-01 17:24:50 +02:00
parent a1ee457ebc
commit 405de1e6a2
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ struct Conf
ulong nmach; /* processors */
ulong nproc; /* processes */
ulong monitor; /* has monitor? */
Confmem mem[4]; /* physical memory */
Confmem mem[16]; /* physical memory */
ulong npage; /* total physical pages of memory */
ulong upages; /* user page pool */
ulong nimage; /* number of page cache image headers */

View file

@ -44,7 +44,7 @@ struct RMap {
/*
* Memory allocation tracking.
*/
static Map mapupa[16];
static Map mapupa[64];
static RMap rmapupa = {
"unallocated unbacked physical memory",
mapupa,