summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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