diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-04-15 05:16:19 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-06-29 16:10:47 -0400 |
commit | 136d47d3e1cc455e9e1d9cb7b9d513a8581d3835 (patch) | |
tree | 5a8e96ba0571685acf7d7139600cc1bf40ad572a | |
parent | 10edd8b9d5e42d5fb0a51061a0e97bc4009aeb1a (diff) |
[MIPS] Wire up tee(2).
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-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 | ||||
-rw-r--r-- | include/asm-mips/unistd.h | 15 |
5 files changed, 13 insertions, 6 deletions
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index 2d2fdf77e308..6344be46ca8c 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
@@ -647,6 +647,7 @@ einval: li v0, -EINVAL | |||
647 | sys sys_unshare 1 | 647 | sys sys_unshare 1 |
648 | sys sys_splice 4 | 648 | sys sys_splice 4 |
649 | sys sys_sync_file_range 7 /* 4305 */ | 649 | sys sys_sync_file_range 7 /* 4305 */ |
650 | sys sys_tee 4 | ||
650 | .endm | 651 | .endm |
651 | 652 | ||
652 | /* We pre-compute the number of _instruction_ bytes needed to | 653 | /* We pre-compute the number of _instruction_ bytes needed to |
diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S index 9ba750887377..12d96c7d0bb2 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
@@ -462,3 +462,4 @@ sys_call_table: | |||
462 | PTR sys_unshare | 462 | PTR sys_unshare |
463 | PTR sys_splice | 463 | PTR sys_splice |
464 | PTR sys_sync_file_range | 464 | PTR sys_sync_file_range |
465 | PTR sys_tee /* 5265 */ | ||
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index 942aca26f9c4..685698554a8a 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
@@ -388,3 +388,4 @@ EXPORT(sysn32_call_table) | |||
388 | PTR sys_unshare | 388 | PTR sys_unshare |
389 | PTR sys_splice | 389 | PTR sys_splice |
390 | PTR sys_sync_file_range | 390 | PTR sys_sync_file_range |
391 | PTR sys_tee | ||
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index 8efb23a84131..0e632934cb76 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
@@ -510,4 +510,5 @@ sys_call_table: | |||
510 | PTR sys_unshare | 510 | PTR sys_unshare |
511 | PTR sys_splice | 511 | PTR sys_splice |
512 | PTR sys32_sync_file_range /* 4305 */ | 512 | PTR sys32_sync_file_range /* 4305 */ |
513 | PTR sys_tee | ||
513 | .size sys_call_table,.-sys_call_table | 514 | .size sys_call_table,.-sys_call_table |
diff --git a/include/asm-mips/unistd.h b/include/asm-mips/unistd.h index 8bb0bb9b2e68..809f9f55bacb 100644 --- a/include/asm-mips/unistd.h +++ b/include/asm-mips/unistd.h | |||
@@ -326,16 +326,17 @@ | |||
326 | #define __NR_unshare (__NR_Linux + 303) | 326 | #define __NR_unshare (__NR_Linux + 303) |
327 | #define __NR_splice (__NR_Linux + 304) | 327 | #define __NR_splice (__NR_Linux + 304) |
328 | #define __NR_sync_file_range (__NR_Linux + 305) | 328 | #define __NR_sync_file_range (__NR_Linux + 305) |
329 | #define __NR_tee (__NR_Linux + 306) | ||
329 | 330 | ||
330 | /* | 331 | /* |
331 | * Offset of the last Linux o32 flavoured syscall | 332 | * Offset of the last Linux o32 flavoured syscall |
332 | */ | 333 | */ |
333 | #define __NR_Linux_syscalls 305 | 334 | #define __NR_Linux_syscalls 306 |
334 | 335 | ||
335 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ | 336 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
336 | 337 | ||
337 | #define __NR_O32_Linux 4000 | 338 | #define __NR_O32_Linux 4000 |
338 | #define __NR_O32_Linux_syscalls 305 | 339 | #define __NR_O32_Linux_syscalls 306 |
339 | 340 | ||
340 | #if _MIPS_SIM == _MIPS_SIM_ABI64 | 341 | #if _MIPS_SIM == _MIPS_SIM_ABI64 |
341 | 342 | ||
@@ -608,16 +609,17 @@ | |||
608 | #define __NR_unshare (__NR_Linux + 262) | 609 | #define __NR_unshare (__NR_Linux + 262) |
609 | #define __NR_splice (__NR_Linux + 263) | 610 | #define __NR_splice (__NR_Linux + 263) |
610 | #define __NR_sync_file_range (__NR_Linux + 264) | 611 | #define __NR_sync_file_range (__NR_Linux + 264) |
612 | #define __NR_tee (__NR_Linux + 265) | ||
611 | 613 | ||
612 | /* | 614 | /* |
613 | * Offset of the last Linux 64-bit flavoured syscall | 615 | * Offset of the last Linux 64-bit flavoured syscall |
614 | */ | 616 | */ |
615 | #define __NR_Linux_syscalls 264 | 617 | #define __NR_Linux_syscalls 265 |
616 | 618 | ||
617 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ | 619 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ |
618 | 620 | ||
619 | #define __NR_64_Linux 5000 | 621 | #define __NR_64_Linux 5000 |
620 | #define __NR_64_Linux_syscalls 264 | 622 | #define __NR_64_Linux_syscalls 265 |
621 | 623 | ||
622 | #if _MIPS_SIM == _MIPS_SIM_NABI32 | 624 | #if _MIPS_SIM == _MIPS_SIM_NABI32 |
623 | 625 | ||
@@ -894,16 +896,17 @@ | |||
894 | #define __NR_unshare (__NR_Linux + 266) | 896 | #define __NR_unshare (__NR_Linux + 266) |
895 | #define __NR_splice (__NR_Linux + 267) | 897 | #define __NR_splice (__NR_Linux + 267) |
896 | #define __NR_sync_file_range (__NR_Linux + 268) | 898 | #define __NR_sync_file_range (__NR_Linux + 268) |
899 | #define __NR_tee (__NR_Linux + 269) | ||
897 | 900 | ||
898 | /* | 901 | /* |
899 | * Offset of the last N32 flavoured syscall | 902 | * Offset of the last N32 flavoured syscall |
900 | */ | 903 | */ |
901 | #define __NR_Linux_syscalls 268 | 904 | #define __NR_Linux_syscalls 269 |
902 | 905 | ||
903 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ | 906 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ |
904 | 907 | ||
905 | #define __NR_N32_Linux 6000 | 908 | #define __NR_N32_Linux 6000 |
906 | #define __NR_N32_Linux_syscalls 268 | 909 | #define __NR_N32_Linux_syscalls 269 |
907 | 910 | ||
908 | #ifdef __KERNEL__ | 911 | #ifdef __KERNEL__ |
909 | 912 | ||