diff options
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/ia32/ia32entry.S | 1 | ||||
-rw-r--r-- | arch/x86_64/ia32/sys_ia32.c | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86_64/ia32/ia32entry.S b/arch/x86_64/ia32/ia32entry.S index 782dea819438..3f66e970d86f 100644 --- a/arch/x86_64/ia32/ia32entry.S +++ b/arch/x86_64/ia32/ia32entry.S | |||
@@ -719,4 +719,5 @@ ia32_sys_call_table: | |||
719 | .quad compat_sys_signalfd | 719 | .quad compat_sys_signalfd |
720 | .quad compat_sys_timerfd | 720 | .quad compat_sys_timerfd |
721 | .quad sys_eventfd | 721 | .quad sys_eventfd |
722 | .quad sys32_fallocate | ||
722 | ia32_syscall_end: | 723 | ia32_syscall_end: |
diff --git a/arch/x86_64/ia32/sys_ia32.c b/arch/x86_64/ia32/sys_ia32.c index 99a78a3cce7c..bee96d614432 100644 --- a/arch/x86_64/ia32/sys_ia32.c +++ b/arch/x86_64/ia32/sys_ia32.c | |||
@@ -879,3 +879,11 @@ asmlinkage long sys32_fadvise64(int fd, unsigned offset_lo, unsigned offset_hi, | |||
879 | return sys_fadvise64_64(fd, ((u64)offset_hi << 32) | offset_lo, | 879 | return sys_fadvise64_64(fd, ((u64)offset_hi << 32) | offset_lo, |
880 | len, advice); | 880 | len, advice); |
881 | } | 881 | } |
882 | |||
883 | asmlinkage long sys32_fallocate(int fd, int mode, unsigned offset_lo, | ||
884 | unsigned offset_hi, unsigned len_lo, | ||
885 | unsigned len_hi) | ||
886 | { | ||
887 | return sys_fallocate(fd, mode, ((u64)offset_hi << 32) | offset_lo, | ||
888 | ((u64)len_hi << 32) | len_lo); | ||
889 | } | ||