From 4483500f623b24abe1c1dac59b407eb5d83c9c9e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 14 Jul 2021 17:06:28 +0000 Subject: [PATCH] pc, pc64: increase confmem slots to 64 Lenovo Thinkpad P17 Gen1 Professional Mobile Workstation comes up with around 36 separate memory ranges. ridiculous! --- sys/src/9/pc/dat.h | 2 +- sys/src/9/pc64/dat.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/src/9/pc/dat.h b/sys/src/9/pc/dat.h index 8eb2f280f..63789fcee 100644 --- a/sys/src/9/pc/dat.h +++ b/sys/src/9/pc/dat.h @@ -120,7 +120,6 @@ struct Conf ulong nmach; /* processors */ ulong nproc; /* processes */ ulong monitor; /* has monitor? */ - 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 */ @@ -130,6 +129,7 @@ struct Conf ulong ialloc; /* max interrupt time allocation in bytes */ ulong pipeqsize; /* size in bytes of pipe queues */ int nuart; /* number of uart devices */ + Confmem mem[64]; /* physical memory */ }; struct Segdesc diff --git a/sys/src/9/pc64/dat.h b/sys/src/9/pc64/dat.h index b8628db9d..cfa07a0c5 100644 --- a/sys/src/9/pc64/dat.h +++ b/sys/src/9/pc64/dat.h @@ -122,7 +122,6 @@ struct Conf ulong nmach; /* processors */ ulong nproc; /* processes */ ulong monitor; /* has monitor? */ - 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 */ @@ -132,6 +131,7 @@ struct Conf ulong ialloc; /* max interrupt time allocation in bytes */ ulong pipeqsize; /* size in bytes of pipe queues */ int nuart; /* number of uart devices */ + Confmem mem[64]; /* physical memory */ }; struct Segdesc