From: Arnd Bergmann Date: Wed, 4 Jan 2006 19:31:32 +0000 (+0100) Subject: [PATCH] spufs: fix allocation on 64k pages X-Git-Tag: v2.6.16-rc1~666^2~13 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=aeb013772a2cc85a8d0baffd64977d2888bc781d;p=~emulex%2Finfiniband.git [PATCH] spufs: fix allocation on 64k pages The size of the local store is architecture defined and independent from the page size, so it should not be defined in terms of pages in the first place. This mistake broke a few places when building for 64kb pages. Signed-off-by: Arnd Bergmann Signed-off-by: Paul Mackerras --- diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h index 3bf6a502aea..692aa60e990 100644 --- a/include/asm-powerpc/spu.h +++ b/include/asm-powerpc/spu.h @@ -28,9 +28,7 @@ #include #include -#define LS_ORDER (6) /* 256 kb */ - -#define LS_SIZE (PAGE_SIZE << LS_ORDER) +#define LS_SIZE (256 * 1024) #define LS_ADDR_MASK (LS_SIZE - 1) #define MFC_PUT_CMD 0x20