[POWERPC] spufs: one more fix for 64k pages
authorarnd@arndb.de <arnd@arndb.de>
Mon, 19 Jun 2006 18:33:35 +0000 (20:33 +0200)
committerPaul Mackerras <paulus@samba.org>
Wed, 21 Jun 2006 05:01:32 +0000 (15:01 +1000)
commit379507181a1e330d4f5b0fabe61cd43eccf09763
treedc986704087a40854a9f8a386d125627b20dee14
parentc983294872ebccd4aacf1b8dd694ac2170feadc3
[POWERPC] spufs: one more fix for 64k pages

The SPU context save/restore code is currently built
for a 4k page size and we provide a _shipped version
of it since most people don't have the spu toolchain
that is needed to rebuild that code.

This patch hardcodes the data structures to a 64k
page alignment, which also guarantees 4k alignment
but unfortunately wastes 60k of memory per SPU
context that is created in the running system.

We will follow up on this with another patch to
reduce that overhead or maybe redo the context
save/restore logic to do this part entirely different,
but for now it should make experimental systems
work with either page size.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/Makefile
arch/powerpc/platforms/cell/spufs/spu_restore_dump.h_shipped
arch/powerpc/platforms/cell/spufs/spu_save_dump.h_shipped
include/asm-powerpc/spu_csa.h