]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] cell: handle kernel SLB setup in spu_base.c
authorJeremy Kerr <jk@ozlabs.org>
Wed, 5 Dec 2007 02:49:31 +0000 (13:49 +1100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 19 Dec 2007 00:00:04 +0000 (01:00 +0100)
commit230b10b3f08154819824bbe9855f1d2892cd17bd
tree64e30777f28b9378d690e224aefbaac27be79d7b
parent863134ada9010d80a2c2cb119ba3346033323ddf
[POWERPC] cell: handle kernel SLB setup in spu_base.c

Currently, the SPU context switch code (spufs/switch.c) sets up the
SPU's SLBs directly, which requires some low-level mm stuff.

This change moves the kernel SLB setup to spu_base.c, by exposing
a function spu_setup_kernel_slbs() to do this setup. This allows us
to remove the low-level mm code from switch.c, making it possible
to later move switch.c to the spufs module.

Also, add a struct spu_slb for the cases where we need to deal with
SLB entries.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/powerpc/platforms/cell/spu_base.c
arch/powerpc/platforms/cell/spufs/switch.c
include/asm-powerpc/spu.h