Commit 8ff8584e51d4d3fbe08ede413c4a221223766323

Authored by David Daney
Committed by Ralf Baechle
1 parent 4f1a1eb530

MIPS: Hook up process_vm_readv and process_vm_writev system calls.

Signed-off-by: David Daney <david.daney@cavium.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2918/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

Showing 5 changed files with 20 additions and 6 deletions Side-by-side Diff

arch/mips/include/asm/unistd.h
... ... @@ -365,16 +365,18 @@
365 365 #define __NR_syncfs (__NR_Linux + 342)
366 366 #define __NR_sendmmsg (__NR_Linux + 343)
367 367 #define __NR_setns (__NR_Linux + 344)
  368 +#define __NR_process_vm_readv (__NR_Linux + 345)
  369 +#define __NR_process_vm_writev (__NR_Linux + 346)
368 370  
369 371 /*
370 372 * Offset of the last Linux o32 flavoured syscall
371 373 */
372   -#define __NR_Linux_syscalls 344
  374 +#define __NR_Linux_syscalls 346
373 375  
374 376 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
375 377  
376 378 #define __NR_O32_Linux 4000
377   -#define __NR_O32_Linux_syscalls 344
  379 +#define __NR_O32_Linux_syscalls 346
378 380  
379 381 #if _MIPS_SIM == _MIPS_SIM_ABI64
380 382  
381 383  
382 384  
... ... @@ -686,16 +688,18 @@
686 688 #define __NR_syncfs (__NR_Linux + 301)
687 689 #define __NR_sendmmsg (__NR_Linux + 302)
688 690 #define __NR_setns (__NR_Linux + 303)
  691 +#define __NR_process_vm_readv (__NR_Linux + 304)
  692 +#define __NR_process_vm_writev (__NR_Linux + 305)
689 693  
690 694 /*
691 695 * Offset of the last Linux 64-bit flavoured syscall
692 696 */
693   -#define __NR_Linux_syscalls 303
  697 +#define __NR_Linux_syscalls 305
694 698  
695 699 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
696 700  
697 701 #define __NR_64_Linux 5000
698   -#define __NR_64_Linux_syscalls 303
  702 +#define __NR_64_Linux_syscalls 305
699 703  
700 704 #if _MIPS_SIM == _MIPS_SIM_NABI32
701 705  
702 706  
703 707  
... ... @@ -1012,16 +1016,18 @@
1012 1016 #define __NR_syncfs (__NR_Linux + 306)
1013 1017 #define __NR_sendmmsg (__NR_Linux + 307)
1014 1018 #define __NR_setns (__NR_Linux + 308)
  1019 +#define __NR_process_vm_readv (__NR_Linux + 309)
  1020 +#define __NR_process_vm_writev (__NR_Linux + 310)
1015 1021  
1016 1022 /*
1017 1023 * Offset of the last N32 flavoured syscall
1018 1024 */
1019   -#define __NR_Linux_syscalls 308
  1025 +#define __NR_Linux_syscalls 310
1020 1026  
1021 1027 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
1022 1028  
1023 1029 #define __NR_N32_Linux 6000
1024   -#define __NR_N32_Linux_syscalls 308
  1030 +#define __NR_N32_Linux_syscalls 310
1025 1031  
1026 1032 #ifdef __KERNEL__
1027 1033  
arch/mips/kernel/scall32-o32.S
... ... @@ -591,6 +591,8 @@
591 591 sys sys_syncfs 1
592 592 sys sys_sendmmsg 4
593 593 sys sys_setns 2
  594 + sys sys_process_vm_readv 6 /* 4345 */
  595 + sys sys_process_vm_writev 6
594 596 .endm
595 597  
596 598 /* We pre-compute the number of _instruction_ bytes needed to
arch/mips/kernel/scall64-64.S
... ... @@ -430,5 +430,7 @@
430 430 PTR sys_syncfs
431 431 PTR sys_sendmmsg
432 432 PTR sys_setns
  433 + PTR sys_process_vm_readv
  434 + PTR sys_process_vm_writev /* 5305 */
433 435 .size sys_call_table,.-sys_call_table
arch/mips/kernel/scall64-n32.S
... ... @@ -430,5 +430,7 @@
430 430 PTR sys_syncfs
431 431 PTR compat_sys_sendmmsg
432 432 PTR sys_setns
  433 + PTR compat_sys_process_vm_readv
  434 + PTR compat_sys_process_vm_writev /* 6310 */
433 435 .size sysn32_call_table,.-sysn32_call_table
arch/mips/kernel/scall64-o32.S
... ... @@ -548,5 +548,7 @@
548 548 PTR sys_syncfs
549 549 PTR compat_sys_sendmmsg
550 550 PTR sys_setns
  551 + PTR compat_sys_process_vm_readv /* 4345 */
  552 + PTR compat_sys_process_vm_writev
551 553 .size sys_call_table,.-sys_call_table