diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2011-05-28 08:22:58 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-07-20 18:12:10 -0400 |
commit | b12acf163f6e52ff7d41aca51382dde17c506068 (patch) | |
tree | 254c2445f26d8e4a07f07e47d0e550284e812013 /arch/mips | |
parent | 731f90fae9a94313916a51ef80c4d906c85d9f64 (diff) |
MIPS: Wire up sendmmsg and renumber setns syscall.
Renumbering was necessary because I had already wired up setns(2) in the
linux-mips.org tree in commit c3fce54644cabbb90700cc3acc040718a377f609
[MIPS: Wire up new sendmmsg syscall.] but the same syscall numbers were
used by 7b21fddd087678a70ad64afc0f632e0f1071b092 [ns: Wire up the setns
system call] resulting in a conflict.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/include/asm/unistd.h | 21 | ||||
-rw-r--r-- | arch/mips/kernel/scall32-o32.S | 1 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-64.S | 1 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-n32.S | 1 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-o32.S | 1 |
5 files changed, 16 insertions, 9 deletions
diff --git a/arch/mips/include/asm/unistd.h b/arch/mips/include/asm/unistd.h index 6fcfc480e9d0..ecea7871dec2 100644 --- a/arch/mips/include/asm/unistd.h +++ b/arch/mips/include/asm/unistd.h | |||
@@ -363,17 +363,18 @@ | |||
363 | #define __NR_open_by_handle_at (__NR_Linux + 340) | 363 | #define __NR_open_by_handle_at (__NR_Linux + 340) |
364 | #define __NR_clock_adjtime (__NR_Linux + 341) | 364 | #define __NR_clock_adjtime (__NR_Linux + 341) |
365 | #define __NR_syncfs (__NR_Linux + 342) | 365 | #define __NR_syncfs (__NR_Linux + 342) |
366 | #define __NR_setns (__NR_Linux + 343) | 366 | #define __NR_sendmmsg (__NR_Linux + 343) |
367 | #define __NR_setns (__NR_Linux + 344) | ||
367 | 368 | ||
368 | /* | 369 | /* |
369 | * Offset of the last Linux o32 flavoured syscall | 370 | * Offset of the last Linux o32 flavoured syscall |
370 | */ | 371 | */ |
371 | #define __NR_Linux_syscalls 343 | 372 | #define __NR_Linux_syscalls 344 |
372 | 373 | ||
373 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ | 374 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
374 | 375 | ||
375 | #define __NR_O32_Linux 4000 | 376 | #define __NR_O32_Linux 4000 |
376 | #define __NR_O32_Linux_syscalls 343 | 377 | #define __NR_O32_Linux_syscalls 344 |
377 | 378 | ||
378 | #if _MIPS_SIM == _MIPS_SIM_ABI64 | 379 | #if _MIPS_SIM == _MIPS_SIM_ABI64 |
379 | 380 | ||
@@ -683,17 +684,18 @@ | |||
683 | #define __NR_open_by_handle_at (__NR_Linux + 299) | 684 | #define __NR_open_by_handle_at (__NR_Linux + 299) |
684 | #define __NR_clock_adjtime (__NR_Linux + 300) | 685 | #define __NR_clock_adjtime (__NR_Linux + 300) |
685 | #define __NR_syncfs (__NR_Linux + 301) | 686 | #define __NR_syncfs (__NR_Linux + 301) |
686 | #define __NR_setns (__NR_Linux + 302) | 687 | #define __NR_sendmmsg (__NR_Linux + 302) |
688 | #define __NR_setns (__NR_Linux + 303) | ||
687 | 689 | ||
688 | /* | 690 | /* |
689 | * Offset of the last Linux 64-bit flavoured syscall | 691 | * Offset of the last Linux 64-bit flavoured syscall |
690 | */ | 692 | */ |
691 | #define __NR_Linux_syscalls 302 | 693 | #define __NR_Linux_syscalls 303 |
692 | 694 | ||
693 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ | 695 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ |
694 | 696 | ||
695 | #define __NR_64_Linux 5000 | 697 | #define __NR_64_Linux 5000 |
696 | #define __NR_64_Linux_syscalls 302 | 698 | #define __NR_64_Linux_syscalls 303 |
697 | 699 | ||
698 | #if _MIPS_SIM == _MIPS_SIM_NABI32 | 700 | #if _MIPS_SIM == _MIPS_SIM_NABI32 |
699 | 701 | ||
@@ -1008,17 +1010,18 @@ | |||
1008 | #define __NR_open_by_handle_at (__NR_Linux + 304) | 1010 | #define __NR_open_by_handle_at (__NR_Linux + 304) |
1009 | #define __NR_clock_adjtime (__NR_Linux + 305) | 1011 | #define __NR_clock_adjtime (__NR_Linux + 305) |
1010 | #define __NR_syncfs (__NR_Linux + 306) | 1012 | #define __NR_syncfs (__NR_Linux + 306) |
1011 | #define __NR_setns (__NR_Linux + 307) | 1013 | #define __NR_sendmmsg (__NR_Linux + 307) |
1014 | #define __NR_setns (__NR_Linux + 308) | ||
1012 | 1015 | ||
1013 | /* | 1016 | /* |
1014 | * Offset of the last N32 flavoured syscall | 1017 | * Offset of the last N32 flavoured syscall |
1015 | */ | 1018 | */ |
1016 | #define __NR_Linux_syscalls 307 | 1019 | #define __NR_Linux_syscalls 308 |
1017 | 1020 | ||
1018 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ | 1021 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ |
1019 | 1022 | ||
1020 | #define __NR_N32_Linux 6000 | 1023 | #define __NR_N32_Linux 6000 |
1021 | #define __NR_N32_Linux_syscalls 307 | 1024 | #define __NR_N32_Linux_syscalls 308 |
1022 | 1025 | ||
1023 | #ifdef __KERNEL__ | 1026 | #ifdef __KERNEL__ |
1024 | 1027 | ||
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index 99e656e425f3..e521420a45a5 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
@@ -589,6 +589,7 @@ einval: li v0, -ENOSYS | |||
589 | sys sys_open_by_handle_at 3 /* 4340 */ | 589 | sys sys_open_by_handle_at 3 /* 4340 */ |
590 | sys sys_clock_adjtime 2 | 590 | sys sys_clock_adjtime 2 |
591 | sys sys_syncfs 1 | 591 | sys sys_syncfs 1 |
592 | sys sys_sendmmsg 4 | ||
592 | sys sys_setns 2 | 593 | sys sys_setns 2 |
593 | .endm | 594 | .endm |
594 | 595 | ||
diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S index fb0575f47f3d..85874d6a8a70 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
@@ -428,5 +428,6 @@ sys_call_table: | |||
428 | PTR sys_open_by_handle_at | 428 | PTR sys_open_by_handle_at |
429 | PTR sys_clock_adjtime /* 5300 */ | 429 | PTR sys_clock_adjtime /* 5300 */ |
430 | PTR sys_syncfs | 430 | PTR sys_syncfs |
431 | PTR sys_sendmmsg | ||
431 | PTR sys_setns | 432 | PTR sys_setns |
432 | .size sys_call_table,.-sys_call_table | 433 | .size sys_call_table,.-sys_call_table |
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index 4de0c5534e73..b85842fc87ae 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
@@ -428,5 +428,6 @@ EXPORT(sysn32_call_table) | |||
428 | PTR sys_open_by_handle_at | 428 | PTR sys_open_by_handle_at |
429 | PTR compat_sys_clock_adjtime /* 6305 */ | 429 | PTR compat_sys_clock_adjtime /* 6305 */ |
430 | PTR sys_syncfs | 430 | PTR sys_syncfs |
431 | PTR compat_sys_sendmmsg | ||
431 | PTR sys_setns | 432 | PTR sys_setns |
432 | .size sysn32_call_table,.-sysn32_call_table | 433 | .size sysn32_call_table,.-sysn32_call_table |
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index 4a387de08bfa..46c4763edf21 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
@@ -546,5 +546,6 @@ sys_call_table: | |||
546 | PTR compat_sys_open_by_handle_at /* 4340 */ | 546 | PTR compat_sys_open_by_handle_at /* 4340 */ |
547 | PTR compat_sys_clock_adjtime | 547 | PTR compat_sys_clock_adjtime |
548 | PTR sys_syncfs | 548 | PTR sys_syncfs |
549 | PTR compat_sys_sendmmsg | ||
549 | PTR sys_setns | 550 | PTR sys_setns |
550 | .size sys_call_table,.-sys_call_table | 551 | .size sys_call_table,.-sys_call_table |