diff options
| author | Ralf Baechle <ralf@linux-mips.org> | 2016-02-05 11:15:42 -0500 |
|---|---|---|
| committer | Ralf Baechle <ralf@linux-mips.org> | 2016-02-05 11:15:42 -0500 |
| commit | e6c058f9b2700a720d3fad0f6caad1d030c533ee (patch) | |
| tree | 6d79a6e92f6eae198e2b507e40ce59f267b18ff5 | |
| parent | d7de413475f443957a0c1d256e405d19b3a2cb22 (diff) | |
MIPS: Wire up copy_file_range syscall.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| -rw-r--r-- | arch/mips/include/uapi/asm/unistd.h | 15 | ||||
| -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, 13 insertions, 6 deletions
diff --git a/arch/mips/include/uapi/asm/unistd.h b/arch/mips/include/uapi/asm/unistd.h index 90f03a7da665..3129795de940 100644 --- a/arch/mips/include/uapi/asm/unistd.h +++ b/arch/mips/include/uapi/asm/unistd.h | |||
| @@ -380,16 +380,17 @@ | |||
| 380 | #define __NR_userfaultfd (__NR_Linux + 357) | 380 | #define __NR_userfaultfd (__NR_Linux + 357) |
| 381 | #define __NR_membarrier (__NR_Linux + 358) | 381 | #define __NR_membarrier (__NR_Linux + 358) |
| 382 | #define __NR_mlock2 (__NR_Linux + 359) | 382 | #define __NR_mlock2 (__NR_Linux + 359) |
| 383 | #define __NR_copy_file_range (__NR_Linux + 360) | ||
| 383 | 384 | ||
| 384 | /* | 385 | /* |
| 385 | * Offset of the last Linux o32 flavoured syscall | 386 | * Offset of the last Linux o32 flavoured syscall |
| 386 | */ | 387 | */ |
| 387 | #define __NR_Linux_syscalls 359 | 388 | #define __NR_Linux_syscalls 360 |
| 388 | 389 | ||
| 389 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ | 390 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
| 390 | 391 | ||
| 391 | #define __NR_O32_Linux 4000 | 392 | #define __NR_O32_Linux 4000 |
| 392 | #define __NR_O32_Linux_syscalls 359 | 393 | #define __NR_O32_Linux_syscalls 360 |
| 393 | 394 | ||
| 394 | #if _MIPS_SIM == _MIPS_SIM_ABI64 | 395 | #if _MIPS_SIM == _MIPS_SIM_ABI64 |
| 395 | 396 | ||
| @@ -717,16 +718,17 @@ | |||
| 717 | #define __NR_userfaultfd (__NR_Linux + 317) | 718 | #define __NR_userfaultfd (__NR_Linux + 317) |
| 718 | #define __NR_membarrier (__NR_Linux + 318) | 719 | #define __NR_membarrier (__NR_Linux + 318) |
| 719 | #define __NR_mlock2 (__NR_Linux + 319) | 720 | #define __NR_mlock2 (__NR_Linux + 319) |
| 721 | #define __NR_copy_file_range (__NR_Linux + 320) | ||
| 720 | 722 | ||
| 721 | /* | 723 | /* |
| 722 | * Offset of the last Linux 64-bit flavoured syscall | 724 | * Offset of the last Linux 64-bit flavoured syscall |
| 723 | */ | 725 | */ |
| 724 | #define __NR_Linux_syscalls 319 | 726 | #define __NR_Linux_syscalls 320 |
| 725 | 727 | ||
| 726 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ | 728 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ |
| 727 | 729 | ||
| 728 | #define __NR_64_Linux 5000 | 730 | #define __NR_64_Linux 5000 |
| 729 | #define __NR_64_Linux_syscalls 319 | 731 | #define __NR_64_Linux_syscalls 320 |
| 730 | 732 | ||
| 731 | #if _MIPS_SIM == _MIPS_SIM_NABI32 | 733 | #if _MIPS_SIM == _MIPS_SIM_NABI32 |
| 732 | 734 | ||
| @@ -1058,15 +1060,16 @@ | |||
| 1058 | #define __NR_userfaultfd (__NR_Linux + 321) | 1060 | #define __NR_userfaultfd (__NR_Linux + 321) |
| 1059 | #define __NR_membarrier (__NR_Linux + 322) | 1061 | #define __NR_membarrier (__NR_Linux + 322) |
| 1060 | #define __NR_mlock2 (__NR_Linux + 323) | 1062 | #define __NR_mlock2 (__NR_Linux + 323) |
| 1063 | #define __NR_copy_file_range (__NR_Linux + 324) | ||
| 1061 | 1064 | ||
| 1062 | /* | 1065 | /* |
| 1063 | * Offset of the last N32 flavoured syscall | 1066 | * Offset of the last N32 flavoured syscall |
| 1064 | */ | 1067 | */ |
| 1065 | #define __NR_Linux_syscalls 323 | 1068 | #define __NR_Linux_syscalls 324 |
| 1066 | 1069 | ||
| 1067 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ | 1070 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ |
| 1068 | 1071 | ||
| 1069 | #define __NR_N32_Linux 6000 | 1072 | #define __NR_N32_Linux 6000 |
| 1070 | #define __NR_N32_Linux_syscalls 323 | 1073 | #define __NR_N32_Linux_syscalls 324 |
| 1071 | 1074 | ||
| 1072 | #endif /* _UAPI_ASM_UNISTD_H */ | 1075 | #endif /* _UAPI_ASM_UNISTD_H */ |
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index 2d23c834ba96..a56317444bda 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
| @@ -595,3 +595,4 @@ EXPORT(sys_call_table) | |||
| 595 | PTR sys_userfaultfd | 595 | PTR sys_userfaultfd |
| 596 | PTR sys_membarrier | 596 | PTR sys_membarrier |
| 597 | PTR sys_mlock2 | 597 | PTR sys_mlock2 |
| 598 | PTR sys_copy_file_range /* 4360 */ | ||
diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S index deac63315d0e..2b2dc14610d0 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
| @@ -433,4 +433,5 @@ EXPORT(sys_call_table) | |||
| 433 | PTR sys_userfaultfd | 433 | PTR sys_userfaultfd |
| 434 | PTR sys_membarrier | 434 | PTR sys_membarrier |
| 435 | PTR sys_mlock2 | 435 | PTR sys_mlock2 |
| 436 | PTR sys_copy_file_range /* 5320 */ | ||
| 436 | .size sys_call_table,.-sys_call_table | 437 | .size sys_call_table,.-sys_call_table |
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index 5a69eb48d0a8..2bf5c8593d91 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
| @@ -423,4 +423,5 @@ EXPORT(sysn32_call_table) | |||
| 423 | PTR sys_userfaultfd | 423 | PTR sys_userfaultfd |
| 424 | PTR sys_membarrier | 424 | PTR sys_membarrier |
| 425 | PTR sys_mlock2 | 425 | PTR sys_mlock2 |
| 426 | PTR sys_copy_file_range | ||
| 426 | .size sysn32_call_table,.-sysn32_call_table | 427 | .size sysn32_call_table,.-sysn32_call_table |
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index e4b6d7c97822..c5b759e584c7 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
| @@ -578,4 +578,5 @@ EXPORT(sys32_call_table) | |||
| 578 | PTR sys_userfaultfd | 578 | PTR sys_userfaultfd |
| 579 | PTR sys_membarrier | 579 | PTR sys_membarrier |
| 580 | PTR sys_mlock2 | 580 | PTR sys_mlock2 |
| 581 | PTR sys_copy_file_range /* 4360 */ | ||
| 581 | .size sys32_call_table,.-sys32_call_table | 582 | .size sys32_call_table,.-sys32_call_table |
