summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2008-09-26 18:44:40 +0000
committeremaste <emaste@FreeBSD.org>2008-09-26 18:44:40 +0000
commita173e0f84d9dd9d48f9b844cfaa7481406bce97d (patch)
tree607928206514188a966c2afdff4ae8f557be3a4a /sys/vm/vm_page.c
parentba942d55439c34784ef1028eca969353647a270b (diff)
downloadFreeBSD-src-a173e0f84d9dd9d48f9b844cfaa7481406bce97d.zip
FreeBSD-src-a173e0f84d9dd9d48f9b844cfaa7481406bce97d.tar.gz
Move CTASSERT from header file to source file, per implementation note now
in the CTASSERT man page.
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r--sys/vm/vm_page.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index c947d16..a7a62f1 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -149,6 +149,13 @@ SYSCTL_INT(_vm, OID_AUTO, boot_pages, CTLFLAG_RD, &boot_pages, 0,
static void vm_page_enqueue(int queue, vm_page_t m);
+/* 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
+
/*
* vm_set_page_size:
*
OpenPOWER on IntegriCloud