summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/compat_wrapper.S
diff options
context:
space:
mode:
authorMartin Schwidefsky2007-07-27 12:29:16 +0200
committerMartin Schwidefsky2007-07-27 12:29:19 +0200
commit7a8e0c8d9af43c9dfc62a8b2b9cc0484f48f7da4 (patch)
treea97ebd19d8f1216b63c0d2743fbef93eecf63fb7 /arch/s390/kernel/compat_wrapper.S
parent[S390] add types.h include to s390_ext.h (diff)
downloadkernel-qcow2-linux-7a8e0c8d9af43c9dfc62a8b2b9cc0484f48f7da4.tar.gz
kernel-qcow2-linux-7a8e0c8d9af43c9dfc62a8b2b9cc0484f48f7da4.tar.xz
kernel-qcow2-linux-7a8e0c8d9af43c9dfc62a8b2b9cc0484f48f7da4.zip
[S390] Wire up sys_fallocate.
This patch implements support of fallocate system call on s390(x) platform. A wrapper is added to address the issue which s390 ABI has with the arguments of this system call. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/compat_wrapper.S')
-rw-r--r--arch/s390/kernel/compat_wrapper.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/s390/kernel/compat_wrapper.S b/arch/s390/kernel/compat_wrapper.S
index acc415457b45..6ee1bedbd1bf 100644
--- a/arch/s390/kernel/compat_wrapper.S
+++ b/arch/s390/kernel/compat_wrapper.S
@@ -1710,3 +1710,13 @@ compat_sys_timerfd_wrapper:
sys_eventfd_wrapper:
llgfr %r2,%r2 # unsigned int
jg sys_eventfd
+
+ .globl sys_fallocate_wrapper
+sys_fallocate_wrapper:
+ lgfr %r2,%r2 # int
+ lgfr %r3,%r3 # int
+ sllg %r4,%r4,32 # get high word of 64bit loff_t
+ lr %r4,%r5 # get low word of 64bit loff_t
+ sllg %r5,%r6,32 # get high word of 64bit loff_t
+ l %r5,164(%r15) # get low word of 64bit loff_t
+ jg sys_fallocate