]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/spufs: fix npc setting for NOSCHED contexts
authorJeremy Kerr <jk@ozlabs.org>
Wed, 13 Aug 2008 01:29:31 +0000 (11:29 +1000)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 13 Aug 2008 01:42:47 +0000 (11:42 +1000)
commit22984a3824edf37ab4b17b169a5b6a12bf9f4f63
tree00a4f49a7a9f478e97aebee786682c2723e3b533
parent0b9e68bddefe7751b5d60f18ab07abeac838129f
powerpc/spufs: fix npc setting for NOSCHED contexts

Currently, spu_run ignores the npc argument for contexts created with
SPU_CREATE_NOSCHED. While this is correct for isolated contexts,
there's no need to enforce the npc restriction on non-isolated NOSCHED
contexts.

This means that NOSCHED contexts can only ever run with an entry point
of 0x0.

This change to spu_run_init allows setting of the npc (and, while we're
at it, the privcntl) for non-isolated NOSCHED contexts. This allows
us to run NOSCHED contexts from any entry point.

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