Skip to contentSkip to conversation

cell compile fixes.

PATCH Dave Jones 2 participants 2 messages Apr 1, 2006

Subsystems (3)
lore
Share & tools
lore

Dave Jones

author
#0 lore raw

Missing include for __NR_syscalls, and missing sys_splice() that causes build-time failure due to compile-time bounds check on spu_syscall_table.

arch/powerpc/platforms/cell/spufs/run.c renamed from arch/powerpc/platforms/cell/spufs/run.c~ +1 -0
@@ -2,6 +2,7 @@
 #include <linux/ptrace.h>
 
 #include <asm/spu.h>
+#include <asm/unistd.h>
 
 #include "spufs.h"
 
arch/powerpc/platforms/cell/spu_callbacks.c renamed from arch/powerpc/platforms/cell/spu_callbacks.c~ +1 -0
@@ -316,6 +316,7 @@ void *spu_syscall_table[] = {
 	[__NR_pselect6]			sys_ni_syscall, /* sys_pselect */
 	[__NR_ppoll]			sys_ni_syscall, /* sys_ppoll */
 	[__NR_unshare]			sys_unshare,
+	[__NR_splice]			sys_splice,
 };
 
 long spu_sys_callback(struct spu_syscall_block *s)
Acked-by
#1 lore raw

Am Saturday 01 April 2006 06:53 schrieb Dave Jones:

Quoted 5 lines

Missing include for __NR_syscalls, and missing sys_splice() that causes build-time failure due to compile-time bounds check on spu_syscall_table.

It's not always obvious if a syscall can be added to that list, e.g. pselect6 could not because the SPU must not change the signal mask, but splice belongs in there.

Thanks,

	Arnd <><