diff options
| author | Ralf Baechle <ralf@linux-mips.org> | 2016-10-12 05:48:39 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-14 14:05:13 -0400 |
| commit | 11ed3e0ef354cdc9c4577a187fa60a053137b507 (patch) | |
| tree | c9dfee45b044aeb8f84d9eaacc43e4221ae63d90 /arch | |
| parent | 29fbff8698fc0ac1a1d74584b258e0bf18b469f9 (diff) | |
MIPS: Wire up new pkey_{mprotect,alloc,free} syscalls
Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14380/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/mips/include/uapi/asm/unistd.h | 22 | ||||
| -rw-r--r-- | arch/mips/kernel/scall32-o32.S | 3 | ||||
| -rw-r--r-- | arch/mips/kernel/scall64-64.S | 3 | ||||
| -rw-r--r-- | arch/mips/kernel/scall64-n32.S | 3 | ||||
| -rw-r--r-- | arch/mips/kernel/scall64-o32.S | 3 |
5 files changed, 28 insertions, 6 deletions
diff --git a/arch/mips/include/uapi/asm/unistd.h b/arch/mips/include/uapi/asm/unistd.h index 24ad815c7f38..3e940dbe0262 100644 --- a/arch/mips/include/uapi/asm/unistd.h +++ b/arch/mips/include/uapi/asm/unistd.h | |||
| @@ -383,16 +383,20 @@ | |||
| 383 | #define __NR_copy_file_range (__NR_Linux + 360) | 383 | #define __NR_copy_file_range (__NR_Linux + 360) |
| 384 | #define __NR_preadv2 (__NR_Linux + 361) | 384 | #define __NR_preadv2 (__NR_Linux + 361) |
| 385 | #define __NR_pwritev2 (__NR_Linux + 362) | 385 | #define __NR_pwritev2 (__NR_Linux + 362) |
| 386 | #define __NR_pkey_mprotect (__NR_Linux + 363) | ||
| 387 | #define __NR_pkey_alloc (__NR_Linux + 364) | ||
| 388 | #define __NR_pkey_free (__NR_Linux + 365) | ||
| 389 | |||
| 386 | 390 | ||
| 387 | /* | 391 | /* |
| 388 | * Offset of the last Linux o32 flavoured syscall | 392 | * Offset of the last Linux o32 flavoured syscall |
| 389 | */ | 393 | */ |
| 390 | #define __NR_Linux_syscalls 362 | 394 | #define __NR_Linux_syscalls 365 |
| 391 | 395 | ||
| 392 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ | 396 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */ |
| 393 | 397 | ||
| 394 | #define __NR_O32_Linux 4000 | 398 | #define __NR_O32_Linux 4000 |
| 395 | #define __NR_O32_Linux_syscalls 362 | 399 | #define __NR_O32_Linux_syscalls 365 |
| 396 | 400 | ||
| 397 | #if _MIPS_SIM == _MIPS_SIM_ABI64 | 401 | #if _MIPS_SIM == _MIPS_SIM_ABI64 |
| 398 | 402 | ||
| @@ -723,16 +727,19 @@ | |||
| 723 | #define __NR_copy_file_range (__NR_Linux + 320) | 727 | #define __NR_copy_file_range (__NR_Linux + 320) |
| 724 | #define __NR_preadv2 (__NR_Linux + 321) | 728 | #define __NR_preadv2 (__NR_Linux + 321) |
| 725 | #define __NR_pwritev2 (__NR_Linux + 322) | 729 | #define __NR_pwritev2 (__NR_Linux + 322) |
| 730 | #define __NR_pkey_mprotect (__NR_Linux + 323) | ||
| 731 | #define __NR_pkey_alloc (__NR_Linux + 324) | ||
| 732 | #define __NR_pkey_free (__NR_Linux + 325) | ||
| 726 | 733 | ||
| 727 | /* | 734 | /* |
| 728 | * Offset of the last Linux 64-bit flavoured syscall | 735 | * Offset of the last Linux 64-bit flavoured syscall |
| 729 | */ | 736 | */ |
| 730 | #define __NR_Linux_syscalls 322 | 737 | #define __NR_Linux_syscalls 325 |
| 731 | 738 | ||
| 732 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ | 739 | #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */ |
| 733 | 740 | ||
| 734 | #define __NR_64_Linux 5000 | 741 | #define __NR_64_Linux 5000 |
| 735 | #define __NR_64_Linux_syscalls 322 | 742 | #define __NR_64_Linux_syscalls 325 |
| 736 | 743 | ||
| 737 | #if _MIPS_SIM == _MIPS_SIM_NABI32 | 744 | #if _MIPS_SIM == _MIPS_SIM_NABI32 |
| 738 | 745 | ||
| @@ -1067,15 +1074,18 @@ | |||
| 1067 | #define __NR_copy_file_range (__NR_Linux + 324) | 1074 | #define __NR_copy_file_range (__NR_Linux + 324) |
| 1068 | #define __NR_preadv2 (__NR_Linux + 325) | 1075 | #define __NR_preadv2 (__NR_Linux + 325) |
| 1069 | #define __NR_pwritev2 (__NR_Linux + 326) | 1076 | #define __NR_pwritev2 (__NR_Linux + 326) |
| 1077 | #define __NR_pkey_mprotect (__NR_Linux + 327) | ||
| 1078 | #define __NR_pkey_alloc (__NR_Linux + 328) | ||
| 1079 | #define __NR_pkey_free (__NR_Linux + 329) | ||
| 1070 | 1080 | ||
| 1071 | /* | 1081 | /* |
| 1072 | * Offset of the last N32 flavoured syscall | 1082 | * Offset of the last N32 flavoured syscall |
| 1073 | */ | 1083 | */ |
| 1074 | #define __NR_Linux_syscalls 326 | 1084 | #define __NR_Linux_syscalls 329 |
| 1075 | 1085 | ||
| 1076 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ | 1086 | #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */ |
| 1077 | 1087 | ||
| 1078 | #define __NR_N32_Linux 6000 | 1088 | #define __NR_N32_Linux 6000 |
| 1079 | #define __NR_N32_Linux_syscalls 326 | 1089 | #define __NR_N32_Linux_syscalls 329 |
| 1080 | 1090 | ||
| 1081 | #endif /* _UAPI_ASM_UNISTD_H */ | 1091 | #endif /* _UAPI_ASM_UNISTD_H */ |
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index c8e43e0c4066..c29d397eee86 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
| @@ -597,3 +597,6 @@ EXPORT(sys_call_table) | |||
| 597 | PTR sys_copy_file_range /* 4360 */ | 597 | PTR sys_copy_file_range /* 4360 */ |
| 598 | PTR sys_preadv2 | 598 | PTR sys_preadv2 |
| 599 | PTR sys_pwritev2 | 599 | PTR sys_pwritev2 |
| 600 | PTR sys_pkey_mprotect | ||
| 601 | PTR sys_pkey_alloc | ||
| 602 | PTR sys_pkey_free /* 4365 */ | ||
diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S index e6ede125059f..0687f96ee912 100644 --- a/arch/mips/kernel/scall64-64.S +++ b/arch/mips/kernel/scall64-64.S | |||
| @@ -435,4 +435,7 @@ EXPORT(sys_call_table) | |||
| 435 | PTR sys_copy_file_range /* 5320 */ | 435 | PTR sys_copy_file_range /* 5320 */ |
| 436 | PTR sys_preadv2 | 436 | PTR sys_preadv2 |
| 437 | PTR sys_pwritev2 | 437 | PTR sys_pwritev2 |
| 438 | PTR sys_pkey_mprotect | ||
| 439 | PTR sys_pkey_alloc | ||
| 440 | PTR sys_pkey_free /* 5325 */ | ||
| 438 | .size sys_call_table,.-sys_call_table | 441 | .size sys_call_table,.-sys_call_table |
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S index 51d3988933f8..0331ba39a065 100644 --- a/arch/mips/kernel/scall64-n32.S +++ b/arch/mips/kernel/scall64-n32.S | |||
| @@ -430,4 +430,7 @@ EXPORT(sysn32_call_table) | |||
| 430 | PTR sys_copy_file_range | 430 | PTR sys_copy_file_range |
| 431 | PTR compat_sys_preadv2 /* 6325 */ | 431 | PTR compat_sys_preadv2 /* 6325 */ |
| 432 | PTR compat_sys_pwritev2 | 432 | PTR compat_sys_pwritev2 |
| 433 | PTR sys_pkey_mprotect | ||
| 434 | PTR sys_pkey_alloc | ||
| 435 | PTR sys_pkey_free | ||
| 433 | .size sysn32_call_table,.-sysn32_call_table | 436 | .size sysn32_call_table,.-sysn32_call_table |
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S index 6efa7136748f..5a47042dd25f 100644 --- a/arch/mips/kernel/scall64-o32.S +++ b/arch/mips/kernel/scall64-o32.S | |||
| @@ -585,4 +585,7 @@ EXPORT(sys32_call_table) | |||
| 585 | PTR sys_copy_file_range /* 4360 */ | 585 | PTR sys_copy_file_range /* 4360 */ |
| 586 | PTR compat_sys_preadv2 | 586 | PTR compat_sys_preadv2 |
| 587 | PTR compat_sys_pwritev2 | 587 | PTR compat_sys_pwritev2 |
| 588 | PTR sys_pkey_mprotect | ||
| 589 | PTR sys_pkey_alloc | ||
| 590 | PTR sys_pkey_free /* 4365 */ | ||
| 588 | .size sys32_call_table,.-sys32_call_table | 591 | .size sys32_call_table,.-sys32_call_table |
