shithub: plan9front

Download patch

ref: 4483500f623b24abe1c1dac59b407eb5d83c9c9e
parent: 1a46b6c19e0e81cd3125a9e026e6aec76ccb110b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Jul 14 13:06:28 EDT 2021

pc, pc64: increase confmem slots to 64

Lenovo Thinkpad P17 Gen1 Professional Mobile Workstation
comes up with around 36 separate memory ranges.

ridiculous!

--- a/sys/src/9/pc/dat.h	Wed Jul 14 13:04:40 2021
+++ b/sys/src/9/pc/dat.h	Wed Jul 14 13:06:28 2021
@@ -120,7 +120,6 @@
 	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 @@
 	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
--- a/sys/src/9/pc64/dat.h	Wed Jul 14 13:04:40 2021
+++ b/sys/src/9/pc64/dat.h	Wed Jul 14 13:06:28 2021
@@ -122,7 +122,6 @@
 	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 @@
 	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