Skip to content

Commit

Permalink
MIPS: Wire up io_pgetevents syscall
Browse files Browse the repository at this point in the history
Wire up the io_pgetevents syscall that was introduced by commit
7a074e9 ("aio: implement io_pgetevents").

Signed-off-by: Paul Burton <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/19593/
Cc: James Hogan <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: [email protected]
  • Loading branch information
paulburton committed Jun 20, 2018
1 parent 744f4be commit 4337aac
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
15 changes: 9 additions & 6 deletions arch/mips/include/uapi/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,17 +389,18 @@
#define __NR_pkey_free (__NR_Linux + 365)
#define __NR_statx (__NR_Linux + 366)
#define __NR_rseq (__NR_Linux + 367)
#define __NR_io_pgetevents (__NR_Linux + 368)


/*
* Offset of the last Linux o32 flavoured syscall
*/
#define __NR_Linux_syscalls 367
#define __NR_Linux_syscalls 368

#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */

#define __NR_O32_Linux 4000
#define __NR_O32_Linux_syscalls 367
#define __NR_O32_Linux_syscalls 368

#if _MIPS_SIM == _MIPS_SIM_ABI64

Expand Down Expand Up @@ -735,16 +736,17 @@
#define __NR_pkey_free (__NR_Linux + 325)
#define __NR_statx (__NR_Linux + 326)
#define __NR_rseq (__NR_Linux + 327)
#define __NR_io_pgetevents (__NR_Linux + 328)

/*
* Offset of the last Linux 64-bit flavoured syscall
*/
#define __NR_Linux_syscalls 327
#define __NR_Linux_syscalls 328

#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */

#define __NR_64_Linux 5000
#define __NR_64_Linux_syscalls 327
#define __NR_64_Linux_syscalls 328

#if _MIPS_SIM == _MIPS_SIM_NABI32

Expand Down Expand Up @@ -1084,15 +1086,16 @@
#define __NR_pkey_free (__NR_Linux + 329)
#define __NR_statx (__NR_Linux + 330)
#define __NR_rseq (__NR_Linux + 331)
#define __NR_io_pgetevents (__NR_Linux + 332)

/*
* Offset of the last N32 flavoured syscall
*/
#define __NR_Linux_syscalls 331
#define __NR_Linux_syscalls 332

#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */

#define __NR_N32_Linux 6000
#define __NR_N32_Linux_syscalls 331
#define __NR_N32_Linux_syscalls 332

#endif /* _UAPI_ASM_UNISTD_H */
1 change: 1 addition & 0 deletions arch/mips/kernel/scall32-o32.S
Original file line number Diff line number Diff line change
Expand Up @@ -591,3 +591,4 @@ EXPORT(sys_call_table)
PTR sys_pkey_free /* 4365 */
PTR sys_statx
PTR sys_rseq
PTR sys_io_pgetevents
1 change: 1 addition & 0 deletions arch/mips/kernel/scall64-64.S
Original file line number Diff line number Diff line change
Expand Up @@ -440,4 +440,5 @@ EXPORT(sys_call_table)
PTR sys_pkey_free /* 5325 */
PTR sys_statx
PTR sys_rseq
PTR sys_io_pgetevents
.size sys_call_table,.-sys_call_table
1 change: 1 addition & 0 deletions arch/mips/kernel/scall64-n32.S
Original file line number Diff line number Diff line change
Expand Up @@ -435,4 +435,5 @@ EXPORT(sysn32_call_table)
PTR sys_pkey_free
PTR sys_statx /* 6330 */
PTR sys_rseq
PTR compat_sys_io_pgetevents
.size sysn32_call_table,.-sysn32_call_table
1 change: 1 addition & 0 deletions arch/mips/kernel/scall64-o32.S
Original file line number Diff line number Diff line change
Expand Up @@ -584,4 +584,5 @@ EXPORT(sys32_call_table)
PTR sys_pkey_free /* 4365 */
PTR sys_statx
PTR sys_rseq
PTR compat_sys_io_pgetevents
.size sys32_call_table,.-sys32_call_table

0 comments on commit 4337aac

Please sign in to comment.