[POWERPC] spufs: reacquire LS pointer in spu_process_callback
commit4eb5aef583aab29dc125b6c2feb0b31f2e350c45
authorJeremy Kerr <jk@ozlabs.org>
Tue, 25 Mar 2008 02:32:03 +0000 (25 13:32 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 28 Mar 2008 03:36:01 +0000 (28 14:36 +1100)
treef5b7f31574938b89f88cedfcb64f9102a851b9fb
parentaf8b44e01b4e5a94cb665f6b958f5a5bc4025b0e
[POWERPC] spufs: reacquire LS pointer in spu_process_callback

During spu_process callback, we release then acquire the SPU, but keep a
pointer to the local store memory. Since the context may have been
scheduled out during the callback, the ls pointer may become invalid.

This change reacquires the pointer to the context local store after
spu_acquire()-ing, so that it isn't invalidated by a context switch.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spufs/run.c