]> git.lizzy.rs Git - plan9front.git/commitdiff
pc, pc64: increase confmem slots to 64
authorcinap_lenrek <cinap_lenrek@felloff.net>
Wed, 14 Jul 2021 17:06:28 +0000 (17:06 +0000)
committercinap_lenrek <cinap_lenrek@felloff.net>
Wed, 14 Jul 2021 17:06:28 +0000 (17:06 +0000)
Lenovo Thinkpad P17 Gen1 Professional Mobile Workstation
comes up with around 36 separate memory ranges.

ridiculous!

sys/src/9/pc/dat.h
sys/src/9/pc64/dat.h

index 8eb2f280fe29255014a883dcb816ae02e53e3099..63789fcee0c26743980a8aafcf0622bde7e015b3 100644 (file)
@@ -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
index b8628db9d052a38c5e99301a4f4f9155d1cc4177..cfa07a0c5f62c39144700d946af5a46efe805ef8 100644 (file)
@@ -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