diff options
author | marcel <marcel@FreeBSD.org> | 2003-08-23 06:30:47 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-08-23 06:30:47 +0000 |
commit | edbda376e130a72c3d04ba2863f7f2772ac1175e (patch) | |
tree | 72407491e8a5a7bdfca849f02b2d48fa7ef0667b /sys | |
parent | a2ab73ca670aaa964d630a4348dc406c486ef1a4 (diff) | |
download | FreeBSD-src-edbda376e130a72c3d04ba2863f7f2772ac1175e.zip FreeBSD-src-edbda376e130a72c3d04ba2863f7f2772ac1175e.tar.gz |
Also define VM_PAGE_BITS_ALL for 16K and 32K pages. Make the constant
unsigned for all page sizes and unsigned long for 32K pages.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_page.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 40ff714..e26e63f 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -307,11 +307,13 @@ extern struct mtx vm_page_queue_mtx; #define vm_page_unlock_queues() mtx_unlock(&vm_page_queue_mtx) #if PAGE_SIZE == 4096 -#define VM_PAGE_BITS_ALL 0xff -#endif - -#if PAGE_SIZE == 8192 -#define VM_PAGE_BITS_ALL 0xffff +#define VM_PAGE_BITS_ALL 0xffu +#elif PAGE_SIZE == 8192 +#define VM_PAGE_BITS_ALL 0xffffu +#elif PAGE_SIZE == 16384 +#define VM_PAGE_BITS_ALL 0xffffffffu +#elif PAGE_SIZE == 32768 +#define VM_PAGE_BITS_ALL 0xfffffffffffffffflu #endif /* page allocation classes: */ |