diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2005-07-13 04:10:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-13 14:25:24 -0400 |
commit | 068e1b94bbd268f375349f68531829c8b7c210bc (patch) | |
tree | 310708cce88df2f72a5f98d1cb67dc1d8fe19171 /arch/s390/kernel/compat_wrapper.S | |
parent | ddca3b80cef36cc668f924ef5154a79acb19ebd7 (diff) |
[PATCH] s390: fadvise hint values.
Add special case for the POSIX_FADV_DONTNEED and POSIX_FADV_NOREUSE hint
values for s390-64. The user space values in the s390-64 glibc headers for
these two defines have always been 6 and 7 instead of 4 and 5. All 64 bit
applications therefore use the "wrong" values. To get these applications
working without recompiling the kernel needs to accept the "wrong" values.
Since the values for s390-31 are 4 and 5 the compat wrapper for fadvise64
and fadvise64_64 need to rewrite the values for 31 bit system calls.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/s390/kernel/compat_wrapper.S')
-rw-r--r-- | arch/s390/kernel/compat_wrapper.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kernel/compat_wrapper.S b/arch/s390/kernel/compat_wrapper.S index bf529739c8ab..799a98eac92d 100644 --- a/arch/s390/kernel/compat_wrapper.S +++ b/arch/s390/kernel/compat_wrapper.S | |||
@@ -1251,12 +1251,12 @@ sys32_fadvise64_wrapper: | |||
1251 | or %r3,%r4 # get low word of 64bit loff_t | 1251 | or %r3,%r4 # get low word of 64bit loff_t |
1252 | llgfr %r4,%r5 # size_t (unsigned long) | 1252 | llgfr %r4,%r5 # size_t (unsigned long) |
1253 | lgfr %r5,%r6 # int | 1253 | lgfr %r5,%r6 # int |
1254 | jg sys_fadvise64 | 1254 | jg sys32_fadvise64 |
1255 | 1255 | ||
1256 | .globl sys32_fadvise64_64_wrapper | 1256 | .globl sys32_fadvise64_64_wrapper |
1257 | sys32_fadvise64_64_wrapper: | 1257 | sys32_fadvise64_64_wrapper: |
1258 | llgtr %r2,%r2 # struct fadvise64_64_args * | 1258 | llgtr %r2,%r2 # struct fadvise64_64_args * |
1259 | jg s390_fadvise64_64 | 1259 | jg sys32_fadvise64_64 |
1260 | 1260 | ||
1261 | .globl sys32_clock_settime_wrapper | 1261 | .globl sys32_clock_settime_wrapper |
1262 | sys32_clock_settime_wrapper: | 1262 | sys32_clock_settime_wrapper: |