From d6355fb2296dad2a7523630a3ab2cb7ff287d969 Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Thu, 25 Jun 2009 22:31:31 -0400 Subject: [PATCH] fix bug in PAGE_MASK --- share/kernelcompat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/kernelcompat.h b/share/kernelcompat.h index 3c23ac99..57d12f83 100644 --- a/share/kernelcompat.h +++ b/share/kernelcompat.h @@ -141,7 +141,7 @@ static __inline__ int get_count_order(unsigned int count) #define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask)) #define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE) #define PAGE_SIZE sysconf(_SC_PAGE_SIZE) -#define PAGE_MASK (PAGE_SIZE-1) +#define PAGE_MASK (~(PAGE_SIZE-1)) -- 2.34.1