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:
parent
a1ee457ebc
commit
405de1e6a2
|
@ -102,7 +102,7 @@ struct Conf
|
||||||
ulong nmach; /* processors */
|
ulong nmach; /* processors */
|
||||||
ulong nproc; /* processes */
|
ulong nproc; /* processes */
|
||||||
ulong monitor; /* has monitor? */
|
ulong monitor; /* has monitor? */
|
||||||
Confmem mem[4]; /* physical memory */
|
Confmem mem[16]; /* physical memory */
|
||||||
ulong npage; /* total physical pages of memory */
|
ulong npage; /* total physical pages of memory */
|
||||||
ulong upages; /* user page pool */
|
ulong upages; /* user page pool */
|
||||||
ulong nimage; /* number of page cache image headers */
|
ulong nimage; /* number of page cache image headers */
|
||||||
|
|
|
@ -44,7 +44,7 @@ struct RMap {
|
||||||
/*
|
/*
|
||||||
* Memory allocation tracking.
|
* Memory allocation tracking.
|
||||||
*/
|
*/
|
||||||
static Map mapupa[16];
|
static Map mapupa[64];
|
||||||
static RMap rmapupa = {
|
static RMap rmapupa = {
|
||||||
"unallocated unbacked physical memory",
|
"unallocated unbacked physical memory",
|
||||||
mapupa,
|
mapupa,
|
||||||
|
|
Loading…
Reference in a new issue