Skip to content

Commit

Permalink
[PATCH] spufs: fix allocation on 64k pages
Browse files Browse the repository at this point in the history
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 <arndb@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Arnd Bergmann authored and Paul Mackerras committed Jan 9, 2006
1 parent 6ff730c commit aeb0137
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/asm-powerpc/spu.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
#include <linux/kref.h>
#include <linux/workqueue.h>

#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
Expand Down

0 comments on commit aeb0137

Please sign in to comment.