summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-08-23 06:24:00 +0000
committermarcel <marcel@FreeBSD.org>2003-08-23 06:24:00 +0000
commit0dfb8cd786d48195352e3bf3147e8e94a64f4b8f (patch)
tree7523fd6d9d50108159f9e97e727b3309473a75c2 /sys/vm/vm_page.h
parentce8950904e7854a02001fc8d752d408e040eacdc (diff)
downloadFreeBSD-src-0dfb8cd786d48195352e3bf3147e8e94a64f4b8f.zip
FreeBSD-src-0dfb8cd786d48195352e3bf3147e8e94a64f4b8f.tar.gz
Add support for 16K and 32K page sizes. The valid and dirty maps
in struct vm_page are defined as u_int for 16K pages and u_long for 32K pages, with the implied assumption that long will at least be 64 bits wide on platforms where we support 32K pages.
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r--sys/vm/vm_page.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index c750813..40ff714 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -133,6 +133,12 @@ struct vm_page {
#elif PAGE_SIZE == 8192
u_short valid; /* map of valid DEV_BSIZE chunks */
u_short dirty; /* map of dirty DEV_BSIZE chunks */
+#elif PAGE_SIZE == 16384
+ u_int valid; /* map of valid DEV_BSIZE chunks */
+ u_int dirty; /* map of dirty DEV_BSIZE chunks */
+#elif PAGE_SIZE == 32768
+ u_long valid; /* map of valid DEV_BSIZE chunks */
+ u_long dirty; /* map of dirty DEV_BSIZE chunks */
#endif
u_int cow; /* page cow mapping count */
};
OpenPOWER on IntegriCloud