[S390] Wire up new syscalls.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 1 Aug 2008 14:39:15 +0000 (16:39 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 1 Aug 2008 14:39:32 +0000 (16:39 +0200)
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/compat_wrapper.S
arch/s390/kernel/syscalls.S
include/asm-s390/unistd.h

index d003a6e16afb807df2ecbbcc6066de49f0784c33..328a20e880b53525f41385fafba3fdf2cac18e1b 100644 (file)
@@ -1732,3 +1732,40 @@ compat_sys_timerfd_gettime_wrapper:
        lgfr    %r2,%r2                 # int
        llgtr   %r3,%r3                 # struct compat_itimerspec *
        jg      compat_sys_timerfd_gettime
+
+       .globl compat_sys_signalfd4_wrapper
+compat_sys_signalfd4_wrapper:
+       lgfr    %r2,%r2                 # int
+       llgtr   %r3,%r3                 # compat_sigset_t *
+       llgfr   %r4,%r4                 # compat_size_t
+       lgfr    %r5,%r5                 # int
+       jg      compat_sys_signalfd4
+
+       .globl sys_eventfd2_wrapper
+sys_eventfd2_wrapper:
+       llgfr   %r2,%r2                 # unsigned int
+       lgfr    %r3,%r3                 # int
+       jg      sys_eventfd2
+
+       .globl  sys_inotify_init1_wrapper
+sys_inotify_init1_wrapper:
+       lgfr    %r2,%r2                 # int
+       jg      sys_inotify_init1
+
+       .globl  sys_pipe2_wrapper
+sys_pipe2_wrapper:
+       llgtr   %r2,%r2                 # u32 *
+       lgfr    %r3,%r3                 # int
+       jg      sys_pipe2               # branch to system call
+
+       .globl  sys_dup3_wrapper
+sys_dup3_wrapper:
+       llgfr   %r2,%r2                 # unsigned int
+       llgfr   %r3,%r3                 # unsigned int
+       lgfr    %r4,%r4                 # int
+       jg      sys_dup3                # branch to system call
+
+       .globl  sys_epoll_create1_wrapper
+sys_epoll_create1_wrapper:
+       lgfr    %r2,%r2                 # int
+       jg      sys_epoll_create1       # branch to system call
index c87ec687d4c6ab5c68fdb4c803df24c724cdadb8..c66d35e55142b0923d08fa4c675b8b320c78f686 100644 (file)
@@ -330,3 +330,9 @@ SYSCALL(sys_eventfd,sys_eventfd,sys_eventfd_wrapper)
 SYSCALL(sys_timerfd_create,sys_timerfd_create,sys_timerfd_create_wrapper)
 SYSCALL(sys_timerfd_settime,sys_timerfd_settime,compat_sys_timerfd_settime_wrapper) /* 320 */
 SYSCALL(sys_timerfd_gettime,sys_timerfd_gettime,compat_sys_timerfd_gettime_wrapper)
+SYSCALL(sys_signalfd4,sys_signalfd4,compat_sys_signalfd4_wrapper)
+SYSCALL(sys_eventfd2,sys_eventfd2,sys_eventfd2_wrapper)
+SYSCALL(sys_inotify_init1,sys_inotify_init1,sys_inotify_init1_wrapper)
+SYSCALL(sys_pipe2,sys_pipe2,sys_pipe2_wrapper) /* 325 */
+SYSCALL(sys_dup3,sys_dup3,sys_dup3_wrapper)
+SYSCALL(sys_epoll_create1,sys_epoll_create1,sys_epoll_create1_wrapper)
index 583da807ea972fea3952571b53084bac82fbe702..c8ad350d14446efd397c05fb403d577380057716 100644 (file)
 #define __NR_timerfd_create    319
 #define __NR_timerfd_settime   320
 #define __NR_timerfd_gettime   321
-#define NR_syscalls 322
+#define __NR_signalfd4         322
+#define __NR_eventfd2          323
+#define __NR_inotify_init1     324
+#define __NR_pipe2             325
+#define __NR_dup3              326
+#define __NR_epoll_create1     327
+#define NR_syscalls 328
 
 /* 
  * There are some system calls that are not present on 64 bit, some