From: Paul M. <le...@us...> - 2006-08-23 05:13:59
|
Update of /cvsroot/linuxsh/linux/include/asm-sh In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv19796/include/asm-sh Modified Files: page.h Log Message: Fixup PAGE_SIZE to shut up libc warnings. Index: page.h =================================================================== RCS file: /cvsroot/linuxsh/linux/include/asm-sh/page.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- page.h 8 Aug 2006 03:07:13 -0000 1.18 +++ page.h 23 Aug 2006 05:13:54 -0000 1.19 @@ -17,7 +17,13 @@ /* PAGE_SHIFT determines the page size */ #define PAGE_SHIFT 12 + +#ifdef __ASSEMBLY__ #define PAGE_SIZE (1 << PAGE_SHIFT) +#else +#define PAGE_SIZE (1UL << PAGE_SHIFT) +#endif + #define PAGE_MASK (~(PAGE_SIZE-1)) #define PTE_MASK PAGE_MASK |