mirror of https://gitee.com/openkylin/linux.git
2dd14934c9
An SPU does not have a way to implement system calls itself, but it can create intercepts to the kernel. This patch uses the method defined by the JSRE interface for C99 host library calls from an SPU to implement Linux system calls. It uses the reserved SPU stop code 0x2104 for this, using the structure layout and syscall numbers for ppc64-linux. I'm still undecided wether it is better to have a list of allowed syscalls or a list of forbidden syscalls, since we can't allow an SPU to call all syscalls that are defined for ppc64-linux. This patch implements the easier choice of them, with a blacklist that only prevents an SPU from calling anything that interacts with its own execution, e.g fork, execve, clone, vfork, exit, spu_run and spu_create and everything that deals with signals. Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org> |
||
---|---|---|
.. | ||
Makefile | ||
backing_ops.c | ||
context.c | ||
file.c | ||
hw_ops.c | ||
inode.c | ||
run.c | ||
sched.c | ||
spu_restore.c | ||
spu_restore_crt0.S | ||
spu_restore_dump.h_shipped | ||
spu_save.c | ||
spu_save_crt0.S | ||
spu_save_dump.h_shipped | ||
spu_utils.h | ||
spufs.h | ||
switch.c | ||
syscalls.c |