diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-05-01 17:24:50 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-05-01 17:24:50 +0200 |
commit | 405de1e6a2bcba579aa48262893ca3da7ccb5e54 (patch) | |
tree | 0c174e6931bc02b6eeec83fa658f8a8438bae34a /sys | |
parent | a1ee457ebc111a5bf85db58a4f87939aa50d70a2 (diff) |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/src/9/pc64/dat.h | 2 | ||||
-rw-r--r-- | sys/src/9/pc64/memory.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc64/dat.h b/sys/src/9/pc64/dat.h index 1f5caa736..d188508b0 100644 --- a/sys/src/9/pc64/dat.h +++ b/sys/src/9/pc64/dat.h @@ -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 */ diff --git a/sys/src/9/pc64/memory.c b/sys/src/9/pc64/memory.c index a9e9b9c28..37c611e00 100644 --- a/sys/src/9/pc64/memory.c +++ b/sys/src/9/pc64/memory.c @@ -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, |