aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2006-03-31 03:27:20 -0500
committerRalf Baechle <ralf@linux-mips.org>2006-04-18 22:14:13 -0400
commitf115da9cd60ccd5f27941dcf9fe8038ae9486a77 (patch)
tree390257c30a093f4334afd45160fb9f4ef768cf69
parent84ada9f85686a6bfdbd65c24fd23ef5d641b0776 (diff)
[MIPS] Wire splice syscall.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/kernel/scall32-o32.S1
-rw-r--r--arch/mips/kernel/scall64-64.S1
-rw-r--r--arch/mips/kernel/scall64-n32.S1
-rw-r--r--arch/mips/kernel/scall64-o32.S1
-rw-r--r--include/asm-mips/unistd.h15
5 files changed, 13 insertions, 6 deletions
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S
index 2f2dc54b2e26..c05ba056b1e4 100644
--- a/arch/mips/kernel/scall32-o32.S
+++ b/arch/mips/kernel/scall32-o32.S
@@ -634,6 +634,7 @@ einval: li v0, -EINVAL
634 sys sys_pselect6 6 634 sys sys_pselect6 6
635 sys sys_ppoll 5 635 sys sys_ppoll 5
636 sys sys_unshare 1 636 sys sys_unshare 1
637 sys sys_splice 4
637 .endm 638 .endm
638 639
639 /* We pre-compute the number of _instruction_ bytes needed to 640 /* 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 98bf25df56f3..f7c4e751f54a 100644
--- a/arch/mips/kernel/scall64-64.S
+++ b/arch/mips/kernel/scall64-64.S
@@ -460,3 +460,4 @@ sys_call_table:
460 PTR sys_pselect6 /* 5260 */ 460 PTR sys_pselect6 /* 5260 */
461 PTR sys_ppoll 461 PTR sys_ppoll
462 PTR sys_unshare 462 PTR sys_unshare
463 PTR sys_splice
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S
index 05a2c0567dae..52aea55d9c5a 100644
--- a/arch/mips/kernel/scall64-n32.S
+++ b/arch/mips/kernel/scall64-n32.S
@@ -386,3 +386,4 @@ EXPORT(sysn32_call_table)
386 PTR sys_pselect6 386 PTR sys_pselect6
387 PTR sys_ppoll /* 6265 */ 387 PTR sys_ppoll /* 6265 */
388 PTR sys_unshare 388 PTR sys_unshare
389 PTR sys_splice
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S
index 19c4ca481b02..c7e766e46368 100644
--- a/arch/mips/kernel/scall64-o32.S
+++ b/arch/mips/kernel/scall64-o32.S
@@ -508,4 +508,5 @@ sys_call_table:
508 PTR sys_pselect6 508 PTR sys_pselect6
509 PTR sys_ppoll 509 PTR sys_ppoll
510 PTR sys_unshare 510 PTR sys_unshare
511 PTR sys_splice
511 .size sys_call_table,.-sys_call_table 512 .size sys_call_table,.-sys_call_table
diff --git a/include/asm-mips/unistd.h b/include/asm-mips/unistd.h
index b5c78a4a0192..2998795fa25e 100644
--- a/include/asm-mips/unistd.h
+++ b/include/asm-mips/unistd.h
@@ -324,16 +324,17 @@
324#define __NR_pselect6 (__NR_Linux + 301) 324#define __NR_pselect6 (__NR_Linux + 301)
325#define __NR_ppoll (__NR_Linux + 302) 325#define __NR_ppoll (__NR_Linux + 302)
326#define __NR_unshare (__NR_Linux + 303) 326#define __NR_unshare (__NR_Linux + 303)
327#define __NR_splice (__NR_Linux + 304)
327 328
328/* 329/*
329 * Offset of the last Linux o32 flavoured syscall 330 * Offset of the last Linux o32 flavoured syscall
330 */ 331 */
331#define __NR_Linux_syscalls 303 332#define __NR_Linux_syscalls 304
332 333
333#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ 334#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
334 335
335#define __NR_O32_Linux 4000 336#define __NR_O32_Linux 4000
336#define __NR_O32_Linux_syscalls 303 337#define __NR_O32_Linux_syscalls 304
337 338
338#if _MIPS_SIM == _MIPS_SIM_ABI64 339#if _MIPS_SIM == _MIPS_SIM_ABI64
339 340
@@ -604,16 +605,17 @@
604#define __NR_pselect6 (__NR_Linux + 260) 605#define __NR_pselect6 (__NR_Linux + 260)
605#define __NR_ppoll (__NR_Linux + 261) 606#define __NR_ppoll (__NR_Linux + 261)
606#define __NR_unshare (__NR_Linux + 262) 607#define __NR_unshare (__NR_Linux + 262)
608#define __NR_splice (__NR_Linux + 263)
607 609
608/* 610/*
609 * Offset of the last Linux 64-bit flavoured syscall 611 * Offset of the last Linux 64-bit flavoured syscall
610 */ 612 */
611#define __NR_Linux_syscalls 262 613#define __NR_Linux_syscalls 263
612 614
613#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ 615#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
614 616
615#define __NR_64_Linux 5000 617#define __NR_64_Linux 5000
616#define __NR_64_Linux_syscalls 262 618#define __NR_64_Linux_syscalls 263
617 619
618#if _MIPS_SIM == _MIPS_SIM_NABI32 620#if _MIPS_SIM == _MIPS_SIM_NABI32
619 621
@@ -888,16 +890,17 @@
888#define __NR_pselect6 (__NR_Linux + 264) 890#define __NR_pselect6 (__NR_Linux + 264)
889#define __NR_ppoll (__NR_Linux + 265) 891#define __NR_ppoll (__NR_Linux + 265)
890#define __NR_unshare (__NR_Linux + 266) 892#define __NR_unshare (__NR_Linux + 266)
893#define __NR_splice (__NR_Linux + 267)
891 894
892/* 895/*
893 * Offset of the last N32 flavoured syscall 896 * Offset of the last N32 flavoured syscall
894 */ 897 */
895#define __NR_Linux_syscalls 266 898#define __NR_Linux_syscalls 267
896 899
897#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ 900#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
898 901
899#define __NR_N32_Linux 6000 902#define __NR_N32_Linux 6000
900#define __NR_N32_Linux_syscalls 266 903#define __NR_N32_Linux_syscalls 267
901 904
902#ifndef __ASSEMBLY__ 905#ifndef __ASSEMBLY__
903 906