[PATCH] s390: add support for unshare system call
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Sun, 12 Feb 2006 01:56:02 +0000 (17:56 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 12 Feb 2006 05:41:13 +0000 (21:41 -0800)
Add support for unshare system call.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/s390/kernel/compat_wrapper.S
arch/s390/kernel/syscalls.S
include/asm-s390/unistd.h

index 83b33fe1923c0bbd53da91beadf66bdff8e964c4..38a6ef5ec6249cfce1d186df601f1475ed919da8 100644 (file)
@@ -1602,3 +1602,8 @@ compat_sys_ppoll_wrapper:
        llgtr   %r5,%r5                 # const sigset_t *
        llgfr   %r6,%r6                 # size_t
        jg      compat_sys_ppoll
+
+       .globl sys_unshare_wrapper
+sys_unshare_wrapper:
+       llgfr   %r2,%r2                 # unsigned long
+       jg      sys_unshare
index 3280345efacd7c6e4c2cdd45c9f7e9b059748a13..e86a4debb1600cafc5b095941822ee89d2dea7e0 100644 (file)
@@ -311,3 +311,4 @@ SYSCALL(sys_fchmodat,sys_fchmodat,sys_fchmodat_wrapper)
 SYSCALL(sys_faccessat,sys_faccessat,sys_faccessat_wrapper)     /* 300 */
 SYSCALL(sys_pselect6,sys_pselect6,compat_sys_pselect6_wrapper)
 SYSCALL(sys_ppoll,sys_ppoll,compat_sys_ppoll_wrapper)
+SYSCALL(sys_unshare,sys_unshare,sys_unshare_wrapper)
index 29a9f357eb9ebc394b330738c9934eb44d5ba1d6..0a2f6664c4cf4d58c42e77a2df7b3df66ed6ae5f 100644 (file)
 #define __NR_faccessat         300
 #define __NR_pselect6          301
 #define __NR_ppoll             302
+#define __NR_unshare           303
 
-#define NR_syscalls 303
+#define NR_syscalls 304
 
 /* 
  * There are some system calls that are not present on 64 bit, some