Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Wire up preadv2 and pwrite2 syscalls.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+20 -6
+12 -6
arch/mips/include/uapi/asm/unistd.h
··· 381 381 #define __NR_membarrier (__NR_Linux + 358) 382 382 #define __NR_mlock2 (__NR_Linux + 359) 383 383 #define __NR_copy_file_range (__NR_Linux + 360) 384 + #define __NR_preadv2 (__NR_Linux + 361) 385 + #define __NR_pwritev2 (__NR_Linux + 362) 384 386 385 387 /* 386 388 * Offset of the last Linux o32 flavoured syscall 387 389 */ 388 - #define __NR_Linux_syscalls 360 390 + #define __NR_Linux_syscalls 362 389 391 390 392 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ 391 393 392 394 #define __NR_O32_Linux 4000 393 - #define __NR_O32_Linux_syscalls 360 395 + #define __NR_O32_Linux_syscalls 362 394 396 395 397 #if _MIPS_SIM == _MIPS_SIM_ABI64 396 398 ··· 721 719 #define __NR_membarrier (__NR_Linux + 318) 722 720 #define __NR_mlock2 (__NR_Linux + 319) 723 721 #define __NR_copy_file_range (__NR_Linux + 320) 722 + #define __NR_preadv2 (__NR_Linux + 321) 723 + #define __NR_pwritev2 (__NR_Linux + 322) 724 724 725 725 /* 726 726 * Offset of the last Linux 64-bit flavoured syscall 727 727 */ 728 - #define __NR_Linux_syscalls 320 728 + #define __NR_Linux_syscalls 322 729 729 730 730 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ 731 731 732 732 #define __NR_64_Linux 5000 733 - #define __NR_64_Linux_syscalls 320 733 + #define __NR_64_Linux_syscalls 322 734 734 735 735 #if _MIPS_SIM == _MIPS_SIM_NABI32 736 736 ··· 1065 1061 #define __NR_membarrier (__NR_Linux + 322) 1066 1062 #define __NR_mlock2 (__NR_Linux + 323) 1067 1063 #define __NR_copy_file_range (__NR_Linux + 324) 1064 + #define __NR_preadv2 (__NR_Linux + 325) 1065 + #define __NR_pwritev2 (__NR_Linux + 326) 1068 1066 1069 1067 /* 1070 1068 * Offset of the last N32 flavoured syscall 1071 1069 */ 1072 - #define __NR_Linux_syscalls 324 1070 + #define __NR_Linux_syscalls 326 1073 1071 1074 1072 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ 1075 1073 1076 1074 #define __NR_N32_Linux 6000 1077 - #define __NR_N32_Linux_syscalls 324 1075 + #define __NR_N32_Linux_syscalls 326 1078 1076 1079 1077 #endif /* _UAPI_ASM_UNISTD_H */
+2
arch/mips/kernel/scall32-o32.S
··· 596 596 PTR sys_membarrier 597 597 PTR sys_mlock2 598 598 PTR sys_copy_file_range /* 4360 */ 599 + PTR sys_preadv2 600 + PTR sys_pwritev2
+2
arch/mips/kernel/scall64-64.S
··· 434 434 PTR sys_membarrier 435 435 PTR sys_mlock2 436 436 PTR sys_copy_file_range /* 5320 */ 437 + PTR sys_preadv2 438 + PTR sys_pwritev2 437 439 .size sys_call_table,.-sys_call_table
+2
arch/mips/kernel/scall64-n32.S
··· 424 424 PTR sys_membarrier 425 425 PTR sys_mlock2 426 426 PTR sys_copy_file_range 427 + PTR compat_sys_preadv2 /* 6325 */ 428 + PTR compat_sys_pwritev2 427 429 .size sysn32_call_table,.-sysn32_call_table
+2
arch/mips/kernel/scall64-o32.S
··· 579 579 PTR sys_membarrier 580 580 PTR sys_mlock2 581 581 PTR sys_copy_file_range /* 4360 */ 582 + PTR compat_sys_preadv2 583 + PTR compat_sys_pwritev2 582 584 .size sys32_call_table,.-sys32_call_table