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.
This commit is contained in:
cinap_lenrek 2015-01-30 14:50:28 +01:00
parent d21af17367
commit b76b5901ff

View file

@ -491,13 +491,13 @@ struct Pallocmem
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 */
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