Skip to content
Commit d9dd421f authored by Jeremy Kerr's avatar Jeremy Kerr
Browse files

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: default avatarJeremy Kerr <jk@ozlabs.org>
parent 2e1e9212
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment