summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-08-25 19:58:01 +0000
committermarcel <marcel@FreeBSD.org>2003-08-25 19:58:01 +0000
commit78b7eaa56b07f91577d87ce877382eb1fe24d899 (patch)
tree69109318806105cd44e9832002f26a9aaa170950 /sys/vm/vm_page.h
parentdcae809e0dac8973526c3ca2ce2eb38f01585d1f (diff)
downloadFreeBSD-src-78b7eaa56b07f91577d87ce877382eb1fe24d899.zip
FreeBSD-src-78b7eaa56b07f91577d87ce877382eb1fe24d899.tar.gz
Assert that u_long is at least 64 bits if PAGE_SIZE is 32K.
Suggested by: phk
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r--sys/vm/vm_page.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h
index e26e63f..7a51e03 100644
--- a/sys/vm/vm_page.h
+++ b/sys/vm/vm_page.h
@@ -143,6 +143,13 @@ struct vm_page {
u_int cow; /* page cow mapping count */
};
+/* Make sure that u_long is at least 64 bits when PAGE_SIZE is 32K. */
+#if PAGE_SIZE == 32768
+#ifdef CTASSERT
+CTASSERT(sizeof(u_long) >= 8);
+#endif
+#endif
+
/*
* note: currently use SWAPBLK_NONE as an absolute value rather then
* a flag bit.
OpenPOWER on IntegriCloud