diff options
author | marcel <marcel@FreeBSD.org> | 2003-08-25 19:58:01 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-08-25 19:58:01 +0000 |
commit | 78b7eaa56b07f91577d87ce877382eb1fe24d899 (patch) | |
tree | 69109318806105cd44e9832002f26a9aaa170950 | |
parent | dcae809e0dac8973526c3ca2ce2eb38f01585d1f (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/vm/vm_page.h | 7 |
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. |