From: Pierre-Marc Fournier Date: Fri, 26 Jun 2009 02:31:31 +0000 (-0400) Subject: fix bug in PAGE_MASK X-Git-Tag: v0.1~182 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=d6355fb2296dad2a7523630a3ab2cb7ff287d969;p=ust.git fix bug in PAGE_MASK --- diff --git a/share/kernelcompat.h b/share/kernelcompat.h index 3c23ac9..57d12f8 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))