diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-07-27 12:29:16 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-07-27 12:29:19 +0200 |
commit | 7a8e0c8d9af43c9dfc62a8b2b9cc0484f48f7da4 (patch) | |
tree | a97ebd19d8f1216b63c0d2743fbef93eecf63fb7 /arch/s390/kernel/compat_wrapper.S | |
parent | cb1863a4619e5c80e43acad61b19cc5114b1c60d (diff) | |
download | op-kernel-dev-7a8e0c8d9af43c9dfc62a8b2b9cc0484f48f7da4.zip op-kernel-dev-7a8e0c8d9af43c9dfc62a8b2b9cc0484f48f7da4.tar.gz |
[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.S | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/s390/kernel/compat_wrapper.S b/arch/s390/kernel/compat_wrapper.S index acc4154..6ee1bed 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 |