fix bug in PAGE_MASK
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Fri, 26 Jun 2009 02:31:31 +0000 (22:31 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Fri, 26 Jun 2009 02:31:31 +0000 (22:31 -0400)
share/kernelcompat.h

index 3c23ac99477b8d95e4c367b59f58d7c95daf4834..57d12f83aef1a85d713402984611cedcaf269833 100644 (file)
@@ -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))
 
 
 
This page took 0.024993 seconds and 4 git commands to generate.