Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157811928
D45065.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D45065.id.diff
View Options
diff --git a/sys/amd64/include/param.h b/sys/amd64/include/param.h
--- a/sys/amd64/include/param.h
+++ b/sys/amd64/include/param.h
@@ -95,6 +95,8 @@
#define PAGE_SHIFT 12 /* LOG2(PAGE_SIZE) */
#define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */
#define PAGE_MASK (PAGE_SIZE-1)
+#define PAGE_SIZE_MAX PAGE_SIZE
+#define PAGE_SHIFT_MAX PAGE_SHIFT
/* Size of the level 2 page directory units */
#define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t)))
#define NPDEPGSHIFT 9 /* LOG2(NPDEPG) */
diff --git a/sys/arm/include/param.h b/sys/arm/include/param.h
--- a/sys/arm/include/param.h
+++ b/sys/arm/include/param.h
@@ -102,6 +102,8 @@
#define PAGE_SHIFT 12
#define PAGE_SIZE (1 << PAGE_SHIFT) /* Page size */
#define PAGE_MASK (PAGE_SIZE - 1)
+#define PAGE_SIZE_MAX PAGE_SIZE
+#define PAGE_SHIFT_MAX PAGE_SHIFT
#define PDR_SHIFT 20 /* log2(NBPDR) */
#define NBPDR (1 << PDR_SHIFT)
diff --git a/sys/arm64/include/param.h b/sys/arm64/include/param.h
--- a/sys/arm64/include/param.h
+++ b/sys/arm64/include/param.h
@@ -97,6 +97,9 @@
#define PAGE_SIZE (1 << PAGE_SHIFT)
#define PAGE_MASK (PAGE_SIZE - 1)
+#define PAGE_SHIFT_MAX PAGE_SHIFT_64K
+#define PAGE_SIZE_MAX PAGE_SIZE_64K
+
#define MAXPAGESIZES 3 /* maximum number of supported page sizes */
#ifndef KSTACK_PAGES
diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h
--- a/sys/i386/include/param.h
+++ b/sys/i386/include/param.h
@@ -85,6 +85,8 @@
#define PAGE_SHIFT 12 /* LOG2(PAGE_SIZE) */
#define PAGE_SIZE (1 << PAGE_SHIFT) /* bytes/page */
#define PAGE_MASK (PAGE_SIZE - 1)
+#define PAGE_SIZE_MAX PAGE_SIZE
+#define PAGE_SHIFT_MAX PAGE_SHIFT
#define NPTEPG (PAGE_SIZE / sizeof(pt_entry_t))
/* Size in bytes of the page directory */
diff --git a/sys/powerpc/include/param.h b/sys/powerpc/include/param.h
--- a/sys/powerpc/include/param.h
+++ b/sys/powerpc/include/param.h
@@ -106,6 +106,8 @@
#define PAGE_SHIFT 12
#define PAGE_SIZE (1 << PAGE_SHIFT) /* Page size */
#define PAGE_MASK (PAGE_SIZE - 1)
+#define PAGE_SIZE_MAX PAGE_SIZE
+#define PAGE_SHIFT_MAX PAGE_SHIFT
#define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
#define NPDEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
diff --git a/sys/riscv/include/param.h b/sys/riscv/include/param.h
--- a/sys/riscv/include/param.h
+++ b/sys/riscv/include/param.h
@@ -80,6 +80,8 @@
#define PAGE_SHIFT 12
#define PAGE_SIZE (1 << PAGE_SHIFT) /* Page size */
#define PAGE_MASK (PAGE_SIZE - 1)
+#define PAGE_SIZE_MAX PAGE_SIZE
+#define PAGE_SHIFT_MAX PAGE_SHIFT
#define MAXPAGESIZES 3 /* maximum number of supported page sizes */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 26, 11:23 AM (10 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33529618
Default Alt Text
D45065.id.diff (2 KB)
Attached To
Mode
D45065: param.h: Add PAGE_SIZE_MAX and PAGE_SHIFT_MAX
Attached
Detach File
Event Timeline
Log In to Comment