[PATCH] sys_indirect kernel implementation for PowerPC

Arnd Bergmann arnd at arndb.de
Wed Nov 28 09:57:56 EST 2007

On Wednesday 21 November 2007, Stephen Rothwell wrote:
> > +++ b/include/asm-powerpc/systbl.h
> > @@ -313,3 +313,4 @@ COMPAT_SYS_SPU(timerfd)
> >  SYSCALL_SPU(eventfd)
> >  COMPAT_SYS_SPU(sync_file_range2)
> >  COMPAT_SYS(fallocate)
> > +COMPAT_SYS(indirect)
> Do the SPUs want this?

Excellent question. Sorry for being late in my reply here. The calls
that are marked non-spu capable are those that are harmful when run
on the SPU, e.g. because they modify the signal mask -- the SPU cannot
receive signals itself.

sys_indirect is potentially very useful on the SPU, but we can't allow
it if it gives you access to all other syscalls. If we want to use it
on the SPU at some point, we may have to provide an alternative
implementation that walks the spu_syscall_table instead.
OTOH, if sys_indirect is mostly useful for the eventual addition of
syslets, we can leave it out, because syslets don't make sense if
you have no multithreading capability.

	Arnd <><

More information about the Linuxppc-dev mailing list