diff options
-rw-r--r-- | arch/arm/kernel/calls.S | 2 | ||||
-rw-r--r-- | arch/arm/kernel/entry-common.S | 4 | ||||
-rw-r--r-- | arch/arm/kernel/sys_arm.c | 10 | ||||
-rw-r--r-- | include/asm-arm/unistd.h | 2 |
4 files changed, 16 insertions, 2 deletions
diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S index 2b6b4c786e65..db07ce42b3b2 100644 --- a/arch/arm/kernel/calls.S +++ b/arch/arm/kernel/calls.S | |||
@@ -284,7 +284,7 @@ __syscall_start: | |||
284 | .long sys_fstatfs64 | 284 | .long sys_fstatfs64 |
285 | .long sys_tgkill | 285 | .long sys_tgkill |
286 | .long sys_utimes | 286 | .long sys_utimes |
287 | /* 270 */ .long sys_fadvise64_64 | 287 | /* 270 */ .long sys_arm_fadvise64_64_wrapper |
288 | .long sys_pciconfig_iobase | 288 | .long sys_pciconfig_iobase |
289 | .long sys_pciconfig_read | 289 | .long sys_pciconfig_read |
290 | .long sys_pciconfig_write | 290 | .long sys_pciconfig_write |
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S index 3f8d0e3aefab..6281d488ac97 100644 --- a/arch/arm/kernel/entry-common.S +++ b/arch/arm/kernel/entry-common.S | |||
@@ -265,6 +265,10 @@ sys_futex_wrapper: | |||
265 | str r5, [sp, #4] @ push sixth arg | 265 | str r5, [sp, #4] @ push sixth arg |
266 | b sys_futex | 266 | b sys_futex |
267 | 267 | ||
268 | sys_arm_fadvise64_64_wrapper: | ||
269 | str r5, [sp, #4] @ push r5 to stack | ||
270 | b sys_arm_fadvise64_64 | ||
271 | |||
268 | /* | 272 | /* |
269 | * Note: off_4k (r5) is always units of 4K. If we can't do the requested | 273 | * Note: off_4k (r5) is always units of 4K. If we can't do the requested |
270 | * offset, we return EINVAL. | 274 | * offset, we return EINVAL. |
diff --git a/arch/arm/kernel/sys_arm.c b/arch/arm/kernel/sys_arm.c index f897ce2ccf0d..42629ff84f5a 100644 --- a/arch/arm/kernel/sys_arm.c +++ b/arch/arm/kernel/sys_arm.c | |||
@@ -311,3 +311,13 @@ long execve(const char *filename, char **argv, char **envp) | |||
311 | return ret; | 311 | return ret; |
312 | } | 312 | } |
313 | EXPORT_SYMBOL(execve); | 313 | EXPORT_SYMBOL(execve); |
314 | |||
315 | /* | ||
316 | * Since loff_t is a 64 bit type we avoid a lot of ABI hastle | ||
317 | * with a different argument ordering. | ||
318 | */ | ||
319 | asmlinkage long sys_arm_fadvise64_64(int fd, int advice, | ||
320 | loff_t offset, loff_t len) | ||
321 | { | ||
322 | return sys_fadvise64_64(fd, offset, len, advice); | ||
323 | } | ||
diff --git a/include/asm-arm/unistd.h b/include/asm-arm/unistd.h index 94619ccee789..278de61224d1 100644 --- a/include/asm-arm/unistd.h +++ b/include/asm-arm/unistd.h | |||
@@ -295,7 +295,7 @@ | |||
295 | #define __NR_fstatfs64 (__NR_SYSCALL_BASE+267) | 295 | #define __NR_fstatfs64 (__NR_SYSCALL_BASE+267) |
296 | #define __NR_tgkill (__NR_SYSCALL_BASE+268) | 296 | #define __NR_tgkill (__NR_SYSCALL_BASE+268) |
297 | #define __NR_utimes (__NR_SYSCALL_BASE+269) | 297 | #define __NR_utimes (__NR_SYSCALL_BASE+269) |
298 | #define __NR_fadvise64_64 (__NR_SYSCALL_BASE+270) | 298 | #define __NR_arm_fadvise64_64 (__NR_SYSCALL_BASE+270) |
299 | #define __NR_pciconfig_iobase (__NR_SYSCALL_BASE+271) | 299 | #define __NR_pciconfig_iobase (__NR_SYSCALL_BASE+271) |
300 | #define __NR_pciconfig_read (__NR_SYSCALL_BASE+272) | 300 | #define __NR_pciconfig_read (__NR_SYSCALL_BASE+272) |
301 | #define __NR_pciconfig_write (__NR_SYSCALL_BASE+273) | 301 | #define __NR_pciconfig_write (__NR_SYSCALL_BASE+273) |