shithub: plan9front

Download patch

ref: b7e67e9e36833431e3ae993e0ce482115de1ff45
parent: c38fcb5dc35986b8a93bf2107f800a890e2cea9b
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jul 25 10:03:12 EDT 2021

kernel: page counts a ulong, not usize

--- a/sys/src/9/bcm/dat.h	Fri Jul 23 11:10:01 2021
+++ b/sys/src/9/bcm/dat.h	Sun Jul 25 10:03:12 2021
@@ -99,7 +99,7 @@
 struct Confmem
 {
 	uintptr	base;
-	usize	npage;
+	ulong	npage;
 	uintptr	limit;
 	uintptr	kbase;
 	uintptr	klimit;
@@ -111,7 +111,7 @@
 	ulong	nproc;		/* processes */
 	Confmem	mem[1];		/* physical memory */
 	ulong	npage;		/* total physical pages of memory */
-	usize	upages;		/* user page pool */
+	ulong	upages;		/* user page pool */
 	ulong	copymode;	/* 0 is copy on write, 1 is copy on reference */
 	ulong	ialloc;		/* max interrupt time allocation in bytes */
 	ulong	pipeqsize;	/* size in bytes of pipe queues */
--- a/sys/src/9/bcm64/dat.h	Fri Jul 23 11:10:01 2021
+++ b/sys/src/9/bcm64/dat.h	Sun Jul 25 10:03:12 2021
@@ -88,7 +88,7 @@
 struct Confmem
 {
 	uintptr	base;
-	usize	npage;
+	ulong	npage;
 	uintptr	limit;
 	uintptr	kbase;
 	uintptr	klimit;
@@ -100,7 +100,7 @@
 	ulong	nproc;		/* processes */
 	Confmem	mem[4];		/* physical memory */
 	ulong	npage;		/* total physical pages of memory */
-	usize	upages;		/* user page pool */
+	ulong	upages;		/* user page pool */
 	ulong	copymode;	/* 0 is copy on write, 1 is copy on reference */
 	ulong	ialloc;		/* max interrupt time allocation in bytes */
 	ulong	pipeqsize;	/* size in bytes of pipe queues */
--- a/sys/src/9/cycv/dat.h	Fri Jul 23 11:10:01 2021
+++ b/sys/src/9/cycv/dat.h	Sun Jul 25 10:03:12 2021
@@ -61,7 +61,7 @@
 struct Confmem
 {
 	uintptr	base;
-	usize	npage;
+	ulong	npage;
 	uintptr	kbase;
 	uintptr	klimit;
 };
@@ -72,7 +72,7 @@
 	ulong	nproc;		/* processes */
 	Confmem	mem[2];		/* physical memory */
 	ulong	npage;		/* total physical pages of memory */
-	usize	upages;		/* user page pool */
+	ulong	upages;		/* user page pool */
 	ulong	copymode;	/* 0 is copy on write, 1 is copy on reference */
 	ulong	ialloc;		/* max interrupt time allocation in bytes */
 	ulong	pipeqsize;	/* size in bytes of pipe queues */
--- a/sys/src/9/kw/dat.h	Fri Jul 23 11:10:01 2021
+++ b/sys/src/9/kw/dat.h	Sun Jul 25 10:03:12 2021
@@ -79,7 +79,7 @@
 struct Confmem
 {
 	uintptr	base;
-	usize	npage;
+	ulong	npage;
 	uintptr	limit;
 	uintptr	kbase;
 	uintptr	klimit;
@@ -92,7 +92,7 @@
 	ulong	monitor;	/* has monitor? */
 	Confmem	mem[1];		/* physical memory */
 	ulong	npage;		/* total physical pages of memory */
-	usize	upages;		/* user page pool */
+	ulong	upages;		/* user page pool */
 	ulong	copymode;	/* 0 is copy on write, 1 is copy on reference */
 	ulong	ialloc;		/* max interrupt time allocation in bytes */
 	ulong	pipeqsize;	/* size in bytes of pipe queues */
--- a/sys/src/9/omap/dat.h	Fri Jul 23 11:10:01 2021
+++ b/sys/src/9/omap/dat.h	Sun Jul 25 10:03:12 2021
@@ -103,7 +103,7 @@
 struct Confmem
 {
 	uintptr	base;
-	usize	npage;
+	ulong	npage;
 	uintptr	limit;
 	uintptr	kbase;
 	uintptr	klimit;
@@ -115,7 +115,7 @@
 	ulong	nproc;		/* processes */
 	Confmem	mem[1];		/* physical memory */
 	ulong	npage;		/* total physical pages of memory */
-	usize	upages;		/* user page pool */
+	ulong	upages;		/* user page pool */
 	ulong	copymode;	/* 0 is copy on write, 1 is copy on reference */
 	ulong	ialloc;		/* max interrupt time allocation in bytes */
 	ulong	pipeqsize;	/* size in bytes of pipe queues */
--- a/sys/src/9/teg2/dat.h	Fri Jul 23 11:10:01 2021
+++ b/sys/src/9/teg2/dat.h	Sun Jul 25 10:03:12 2021
@@ -114,7 +114,7 @@
 struct Confmem
 {
 	uintptr	base;
-	usize	npage;
+	ulong	npage;
 	uintptr	limit;
 	uintptr	kbase;
 	uintptr	klimit;
@@ -126,7 +126,7 @@
 	ulong	nproc;		/* processes */
 	Confmem	mem[1];		/* physical memory */
 	ulong	npage;		/* total physical pages of memory */
-	usize	upages;		/* user page pool */
+	ulong	upages;		/* user page pool */
 	ulong	copymode;	/* 0 is copy on write, 1 is copy on reference */
 	ulong	ialloc;		/* max interrupt time allocation in bytes */
 	ulong	pipeqsize;	/* size in bytes of pipe queues */
--- a/sys/src/9/zynq/dat.h	Fri Jul 23 11:10:01 2021
+++ b/sys/src/9/zynq/dat.h	Sun Jul 25 10:03:12 2021
@@ -60,7 +60,7 @@
 struct Confmem
 {
 	uintptr	base;
-	usize	npage;
+	ulong	npage;
 	uintptr	kbase;
 	uintptr	klimit;
 };
@@ -71,7 +71,7 @@
 	ulong	nproc;		/* processes */
 	Confmem	mem[2];		/* physical memory */
 	ulong	npage;		/* total physical pages of memory */
-	usize	upages;		/* user page pool */
+	ulong	upages;		/* user page pool */
 	ulong	copymode;	/* 0 is copy on write, 1 is copy on reference */
 	ulong	ialloc;		/* max interrupt time allocation in bytes */
 	ulong	pipeqsize;	/* size in bytes of pipe queues */