shithub: riscv

Download patch

ref: b76b5901ff41c7851df1f452578d8d5fa4e5f933
parent: d21af173677127813b63a61a97131de821a680d6
author: cinap_lenrek <[email protected]>
date: Fri Jan 30 09:50:28 EST 2015

kernel: increase size of palloc.mem[] user page bank array

we'r hitting the limit of user page banks on some asrock mainboard,
so doubling the size of the array twice to make running out unlikely.

--- a/sys/src/9/port/portdat.h
+++ b/sys/src/9/port/portdat.h
@@ -491,7 +491,6 @@
 struct Palloc
 {
 	Lock;
-	Pallocmem	mem[4];
 	Page	*head;			/* freelist head */
 	ulong	freecount;		/* how many pages on free list now */
 	Page	*pages;			/* array of all pages */
@@ -498,6 +497,7 @@
 	ulong	user;			/* how many user pages */
 	Rendez	r;			/* Sleep for free mem */
 	QLock	pwait;			/* Queue of procs waiting for memory */
+	Pallocmem	mem[16];	/* physical user page banks */
 };
 
 struct Waitq