Skip to contentSkip to conversation

New system call, unshare (powerpc)

PATCH In review JANAK DESAI 2 participants 3 messages Dec 8, 2005 – Dec 9, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 3/5 New system call, unshare (powerpc)

[PATCH -mm 3/5] unshare system call: System call registration for powerpc

Signed-off-by Janak Desai
 arch/powerpc/kernel/systbl.S |    1 +
 include/asm-powerpc/unistd.h |    3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff -Naurp 2.6.15-rc5-mm1/arch/powerpc/kernel/systbl.S 2.6.15-rc5-mm1+unshare-powerpc/arch/powerpc/kernel/systbl.S
--- 2.6.15-rc5-mm1/arch/powerpc/kernel/systbl.S 2005-12-06
21:05:49.000000000 +0000
+++
2.6.15-rc5-mm1+unshare-powerpc/arch/powerpc/kernel/systbl.S 2005-12-08
19:12:56.000000000 +0000
@@ -319,3 +319,4 @@ COMPAT_SYS(ioprio_get)
SYSCALL(inotify_init)
SYSCALL(inotify_add_watch) SYSCALL(inotify_rm_watch)
+SYSCALL(unshare)
diff -Naurp 2.6.15-rc5-mm1/include/asm-powerpc/unistd.h 2.6.15-rc5-mm1+unshare-powerpc/include/asm-powerpc/unistd.h
--- 2.6.15-rc5-mm1/include/asm-powerpc/unistd.h 2005-12-06
21:06:19.000000000 +0000
+++
2.6.15-rc5-mm1+unshare-powerpc/include/asm-powerpc/unistd.h 2005-12-08
19:11:21.000000000 +0000
@@ -296,8 +296,9 @@
#define __NR_inotify_init 275
#define __NR_inotify_add_watch 276
#define __NR_inotify_rm_watch 277
+#define __NR_unshare 278

-#define __NR_syscalls 278
+#define __NR_syscalls 279

#ifdef __KERNEL__
#define __NR__exit __NR_exit

#1 lore raw

Review line 299

Quoted 10 lines · JANAK DESAI

--- 2.6.15-rc5-mm1/include/asm-powerpc/unistd.h 2005-12-06
21:06:19.000000000 +0000
+++
2.6.15-rc5-mm1+unshare-powerpc/include/asm-powerpc/unistd.h 2005-12-08
19:11:21.000000000 +0000

(quoted diff) +1 -0
@@ -296,8 +296,9 @@
 #define __NR_inotify_init	275
 #define __NR_inotify_add_watch	276
 #define __NR_inotify_rm_watch	277
+#define __NR_unshare		278

How does this apply against 2.6.15-rc5-mm1, which adds spu_run and spu_create as syscalls 278 and 279?

Paul.

#2 lore raw

Sorry, I messed up. I created this against 2.6.15-rc5 and not rc5-mm1. I will do a new build, unit test and post updated patches tomorrow.

-Janak

Quoted 30 lines · Paul Mackerras

Review line 301

Quoted 12 lines · JANAK DESAI

--- 2.6.15-rc5-mm1/include/asm-powerpc/unistd.h 2005-12-06
21:06:19.000000000 +0000
+++
2.6.15-rc5-mm1+unshare-powerpc/include/asm-powerpc/unistd.h 2005-12-08
19:11:21.000000000 +0000

(quoted diff) +1 -0
@@ -296,8 +296,9 @@
 #define __NR_inotify_init	275
 #define __NR_inotify_add_watch	276
 #define __NR_inotify_rm_watch	277
+#define __NR_unshare		278
 
 

How does this apply against 2.6.15-rc5-mm1, which adds spu_run and spu_create as syscalls 278 and 279?

Paul.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/