[PATCH 7/7] revoke: wire up s390 system calls

From: Pekka J Enberg
Date: Fri Mar 09 2007 - 03:17:22 EST


From: Serge E. Hallyn <serue@xxxxxxxxxx>

Make revokeat and frevoke system calls available to user-space on s390.

Signed-off-by: Serge E. Hallyn <serue@xxxxxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
---
arch/s390/kernel/compat_wrapper.S | 11 +++++++++++
arch/s390/kernel/syscalls.S | 2 ++
include/asm-s390/unistd.h | 4 +++-
3 files changed, 16 insertions(+), 1 deletion(-)

Index: uml-2.6/arch/s390/kernel/compat_wrapper.S
===================================================================
--- uml-2.6.orig/arch/s390/kernel/compat_wrapper.S 2007-03-08 10:24:23.000000000 +0200
+++ uml-2.6/arch/s390/kernel/compat_wrapper.S 2007-03-08 10:24:34.000000000 +0200
@@ -1665,3 +1665,14 @@
llgtr %r3,%r3 # unsigned *
llgtr %r4,%r4 # struct getcpu_cache *
jg sys_getcpu
+
+ .globl sys_revokeat_wrapper
+sys_revokeat_wrapper:
+ lgfr %r2,%r2 # int
+ llgtr %r3,%r3 # const char *
+ jg sys_revokeat
+
+ .globl sys_frevoke_wrapper
+sys_frevoke_wrapper:
+ llgfr %r2,%r2 # unsigned int
+ jg sys_frevoke
Index: uml-2.6/arch/s390/kernel/syscalls.S
===================================================================
--- uml-2.6.orig/arch/s390/kernel/syscalls.S 2007-03-08 10:24:23.000000000 +0200
+++ uml-2.6/arch/s390/kernel/syscalls.S 2007-03-08 10:24:34.000000000 +0200
@@ -321,3 +321,5 @@
NI_SYSCALL /* 310 sys_move_pages */
SYSCALL(sys_getcpu,sys_getcpu,sys_getcpu_wrapper)
SYSCALL(sys_epoll_pwait,sys_epoll_pwait,sys_ni_syscall)
+SYSCALL(sys_revokeat,sys_revokeat,sys_revokeat_wrapper)
+SYSCALL(sys_frevoke,sys_frevoke,sys_frevoke_wrapper)
Index: uml-2.6/include/asm-s390/unistd.h
===================================================================
--- uml-2.6.orig/include/asm-s390/unistd.h 2007-03-08 10:24:23.000000000 +0200
+++ uml-2.6/include/asm-s390/unistd.h 2007-03-08 10:24:34.000000000 +0200
@@ -250,8 +250,10 @@
/* Number 310 is reserved for new sys_move_pages */
#define __NR_getcpu 311
#define __NR_epoll_pwait 312
+#define __NR_revokeat 313
+#define __NR_frevoke 314

-#define NR_syscalls 313
+#define NR_syscalls 315

/*
* There are some system calls that are not present on 64 bit, some
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/