[PATCH] reserve syscall numbers for Cell

Arnd Bergmann arnd at arndb.de
Sat Oct 29 09:16:43 EST 2005


This creates two powerpc specific dummy system calls that will
later be used on the Cell platform to manage SPUs.

Reserve the system call numbers now so we don't accidentally
use the same numbers for different system calls.

Signed-off-by: Arnd Bergmann <arndb at de.ibm.com>

---
Please apply to merge tree

--- a/kernel/sys_ni.c	2005-10-29 00:46:21.000000000 +0200
+++ b/kernel/sys_ni.c	2005-10-29 00:47:37.000000000 +0200
@@ -90,3 +90,5 @@
 cond_syscall(sys32_ipc);
 cond_syscall(sys32_sysctl);
 cond_syscall(ppc_rtas);
+cond_syscall(sys_spu_run);
+cond_syscall(sys_spu_create);
--- a/arch/powerpc/kernel/systbl.S	2005-10-29 00:39:49.000000000 +0200
+++ b/arch/powerpc/kernel/systbl.S	2005-10-29 00:44:48.000000000 +0200
@@ -319,3 +319,5 @@
 SYSCALL(inotify_init)
 SYSCALL(inotify_add_watch)
 SYSCALL(inotify_rm_watch)
+SYSCALL(spu_run)
+SYSCALL(spu_create)
--- a/include/asm-powerpc/unistd.h	2005-10-29 00:34:40.000000000 +0200
+++ b/include/asm-powerpc/unistd.h	2005-10-29 00:35:52.000000000 +0200
@@ -297,7 +297,9 @@
 #define __NR_inotify_add_watch	276
 #define __NR_inotify_rm_watch	277

-#define __NR_syscalls		278
+#define __NR_spu_run		278
+#define __NR_spu_create		279
+#define __NR_syscalls		280
 
 #ifdef __KERNEL__
 #define __NR__exit __NR_exit



More information about the Linuxppc64-dev mailing list