MIPS: Hook up name_to_handle_at, open_by_handle_at and clock_adjtime syscalls.
authorDavid Daney <ddaney@caviumnetworks.com>
Fri, 18 Mar 2011 17:37:23 +0000 (10:37 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 25 Mar 2011 17:45:20 +0000 (18:45 +0100)
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>
arch/mips/include/asm/unistd.h
arch/mips/kernel/scall32-o32.S
arch/mips/kernel/scall64-64.S
arch/mips/kernel/scall64-n32.S
arch/mips/kernel/scall64-o32.S

index 550725b881d5edec666a5b32bbe1200164ac7fd8..d1ea5ea7802af339d13ee163242579e0ede36800 100644 (file)
 #define __NR_fanotify_init             (__NR_Linux + 336)
 #define __NR_fanotify_mark             (__NR_Linux + 337)
 #define __NR_prlimit64                 (__NR_Linux + 338)
+#define __NR_name_to_handle_at         (__NR_Linux + 339)
+#define __NR_open_by_handle_at         (__NR_Linux + 340)
+#define __NR_clock_adjtime             (__NR_Linux + 341)
 
 /*
  * Offset of the last Linux o32 flavoured syscall
  */
-#define __NR_Linux_syscalls            338
+#define __NR_Linux_syscalls            341
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
 
 #define __NR_O32_Linux                 4000
-#define __NR_O32_Linux_syscalls                338
+#define __NR_O32_Linux_syscalls                341
 
 #if _MIPS_SIM == _MIPS_SIM_ABI64
 
 #define __NR_fanotify_init             (__NR_Linux + 295)
 #define __NR_fanotify_mark             (__NR_Linux + 296)
 #define __NR_prlimit64                 (__NR_Linux + 297)
+#define __NR_name_to_handle_at         (__NR_Linux + 298)
+#define __NR_open_by_handle_at         (__NR_Linux + 299)
+#define __NR_clock_adjtime             (__NR_Linux + 300)
 
 /*
  * Offset of the last Linux 64-bit flavoured syscall
  */
-#define __NR_Linux_syscalls            297
+#define __NR_Linux_syscalls            300
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
 
 #define __NR_64_Linux                  5000
-#define __NR_64_Linux_syscalls         297
+#define __NR_64_Linux_syscalls         300
 
 #if _MIPS_SIM == _MIPS_SIM_NABI32
 
 #define __NR_fanotify_init             (__NR_Linux + 300)
 #define __NR_fanotify_mark             (__NR_Linux + 301)
 #define __NR_prlimit64                 (__NR_Linux + 302)
+#define __NR_name_to_handle_at         (__NR_Linux + 303)
+#define __NR_open_by_handle_at         (__NR_Linux + 304)
+#define __NR_clock_adjtime             (__NR_Linux + 305)
 
 /*
  * Offset of the last N32 flavoured syscall
  */
-#define __NR_Linux_syscalls            302
+#define __NR_Linux_syscalls            305
 
 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
 
 #define __NR_N32_Linux                 6000
-#define __NR_N32_Linux_syscalls                302
+#define __NR_N32_Linux_syscalls                305
 
 #ifdef __KERNEL__
 
index fbaabad0e6e28466aa1098d4f50c516d520b0c7d..66b439db91b5e1defbff204d0eef87754fb37a66 100644 (file)
@@ -586,6 +586,9 @@ einval:     li      v0, -ENOSYS
        sys     sys_fanotify_init       2
        sys     sys_fanotify_mark       6
        sys     sys_prlimit64           4
+       sys     sys_name_to_handle_at   5
+       sys     sys_open_by_handle_at   3       /* 4340 */
+       sys     sys_clock_adjtime       2
        .endm
 
        /* We pre-compute the number of _instruction_ bytes needed to
index 3f4179283207b1cc21e7fc14d9fea4da0c38bb28..0ccd6e363b79daab89466fc5c0c0a46ace6236aa 100644 (file)
@@ -425,4 +425,7 @@ sys_call_table:
        PTR     sys_fanotify_init               /* 5295 */
        PTR     sys_fanotify_mark
        PTR     sys_prlimit64
+       PTR     sys_name_to_handle_at
+       PTR     sys_open_by_handle_at
+       PTR     sys_clock_adjtime               /* 5300 */
        .size   sys_call_table,.-sys_call_table
index f08ece6d8acc7f3aa78ecbca23f801ae76727f6a..179d1c8dcbb2d0a22f13bbe59145f6426b8fe037 100644 (file)
@@ -425,4 +425,7 @@ EXPORT(sysn32_call_table)
        PTR     sys_fanotify_init               /* 6300 */
        PTR     sys_fanotify_mark
        PTR     sys_prlimit64
+       PTR     sys_name_to_handle_at
+       PTR     sys_open_by_handle_at
+       PTR     compat_sys_clock_adjtime        /* 6305 */
        .size   sysn32_call_table,.-sysn32_call_table
index 78d768a3e19da78fc986e9170f73b240ee98c1c2..5c4e0dc52f7873b65d9a8a466e0346b1c4f4a500 100644 (file)
@@ -543,4 +543,7 @@ sys_call_table:
        PTR     sys_fanotify_init
        PTR     sys_32_fanotify_mark
        PTR     sys_prlimit64
+       PTR     sys_name_to_handle_at
+       PTR     compat_sys_open_by_handle_at    /* 4340 */
+       PTR     compat_sys_clock_adjtime
        .size   sys_call_table,.-sys_call_table