diff options
author | David Daney <ddaney@caviumnetworks.com> | 2011-03-18 13:37:23 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-03-25 13:45:20 -0400 |
commit | 84ed94323e67c9f99606fb24e8c746a0d62ab95a (patch) | |
tree | 96463894719e5a1fdb89d26e28ae906e9dc84f4a /arch/mips/include | |
parent | fbaa4e2a19a4b85b38464cf2683e4d275b4d970c (diff) |
MIPS: Hook up name_to_handle_at, open_by_handle_at and clock_adjtime syscalls.
These system calls we recently added.
32-bit ABIs need compat handling for sys_clock_adjtime().
o32 also needs compat handling for sys_open_by_handle_at();
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2165/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/unistd.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/arch/mips/include/asm/unistd.h b/arch/mips/include/asm/unistd.h index 550725b881d..d1ea5ea7802 100644 --- a/arch/mips/include/asm/unistd.h +++ b/arch/mips/include/asm/unistd.h | |||
@@ -359,16 +359,19 @@ | |||
359 | #define __NR_fanotify_init (__NR_Linux + 336) | 359 | #define __NR_fanotify_init (__NR_Linux + 336) |
360 | #define __NR_fanotify_mark (__NR_Linux + 337) | 360 | #define __NR_fanotify_mark (__NR_Linux + 337) |
361 | #define __NR_prlimit64 (__NR_Linux + 338) | 361 | #define __NR_prlimit64 (__NR_Linux + 338) |
362 | #define __NR_name_to_handle_at (__NR_Linux + 339) | ||
363 | #define __NR_open_by_handle_at (__NR_Linux + 340) | ||
364 | #define __NR_clock_adjtime (__NR_Linux + 341) | ||
362 | 365 | ||
363 | /* | 366 | /* |
364 | * Offset of the last Linux o32 flavoured syscall | 367 | * Offset of the last Linux o32 flavoured syscall |
365 | */ | 368 | */ |
366 | #define __NR_Linux_syscalls 338 | 369 | #define __NR_Linux_syscalls 341 |
367 | 370 | ||
368 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ | 371 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
369 | 372 | ||
370 | #define __NR_O32_Linux 4000 | 373 | #define __NR_O32_Linux 4000 |
371 | #define __NR_O32_Linux_syscalls 338 | 374 | #define __NR_O32_Linux_syscalls 341 |
372 | 375 | ||
373 | #if _MIPS_SIM == _MIPS_SIM_ABI64 | 376 | #if _MIPS_SIM == _MIPS_SIM_ABI64 |
374 | 377 | ||
@@ -674,16 +677,19 @@ | |||
674 | #define __NR_fanotify_init (__NR_Linux + 295) | 677 | #define __NR_fanotify_init (__NR_Linux + 295) |
675 | #define __NR_fanotify_mark (__NR_Linux + 296) | 678 | #define __NR_fanotify_mark (__NR_Linux + 296) |
676 | #define __NR_prlimit64 (__NR_Linux + 297) | 679 | #define __NR_prlimit64 (__NR_Linux + 297) |
680 | #define __NR_name_to_handle_at (__NR_Linux + 298) | ||
681 | #define __NR_open_by_handle_at (__NR_Linux + 299) | ||
682 | #define __NR_clock_adjtime (__NR_Linux + 300) | ||
677 | 683 | ||
678 | /* | 684 | /* |
679 | * Offset of the last Linux 64-bit flavoured syscall | 685 | * Offset of the last Linux 64-bit flavoured syscall |
680 | */ | 686 | */ |
681 | #define __NR_Linux_syscalls 297 | 687 | #define __NR_Linux_syscalls 300 |
682 | 688 | ||
683 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ | 689 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ |
684 | 690 | ||
685 | #define __NR_64_Linux 5000 | 691 | #define __NR_64_Linux 5000 |
686 | #define __NR_64_Linux_syscalls 297 | 692 | #define __NR_64_Linux_syscalls 300 |
687 | 693 | ||
688 | #if _MIPS_SIM == _MIPS_SIM_NABI32 | 694 | #if _MIPS_SIM == _MIPS_SIM_NABI32 |
689 | 695 | ||
@@ -994,16 +1000,19 @@ | |||
994 | #define __NR_fanotify_init (__NR_Linux + 300) | 1000 | #define __NR_fanotify_init (__NR_Linux + 300) |
995 | #define __NR_fanotify_mark (__NR_Linux + 301) | 1001 | #define __NR_fanotify_mark (__NR_Linux + 301) |
996 | #define __NR_prlimit64 (__NR_Linux + 302) | 1002 | #define __NR_prlimit64 (__NR_Linux + 302) |
1003 | #define __NR_name_to_handle_at (__NR_Linux + 303) | ||
1004 | #define __NR_open_by_handle_at (__NR_Linux + 304) | ||
1005 | #define __NR_clock_adjtime (__NR_Linux + 305) | ||
997 | 1006 | ||
998 | /* | 1007 | /* |
999 | * Offset of the last N32 flavoured syscall | 1008 | * Offset of the last N32 flavoured syscall |
1000 | */ | 1009 | */ |
1001 | #define __NR_Linux_syscalls 302 | 1010 | #define __NR_Linux_syscalls 305 |
1002 | 1011 | ||
1003 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ | 1012 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ |
1004 | 1013 | ||
1005 | #define __NR_N32_Linux 6000 | 1014 | #define __NR_N32_Linux 6000 |
1006 | #define __NR_N32_Linux_syscalls 302 | 1015 | #define __NR_N32_Linux_syscalls 305 |
1007 | 1016 | ||
1008 | #ifdef __KERNEL__ | 1017 | #ifdef __KERNEL__ |
1009 | 1018 | ||