Skip to content

Commit 389cdc5

Browse files
committed
MIPS: Wire up execveat(2).
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent b8e7d19 commit 389cdc5

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

arch/mips/include/uapi/asm/unistd.h

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,16 +376,17 @@
376376
#define __NR_getrandom (__NR_Linux + 353)
377377
#define __NR_memfd_create (__NR_Linux + 354)
378378
#define __NR_bpf (__NR_Linux + 355)
379+
#define __NR_execveat (__NR_Linux + 356)
379380

380381
/*
381382
* Offset of the last Linux o32 flavoured syscall
382383
*/
383-
#define __NR_Linux_syscalls 355
384+
#define __NR_Linux_syscalls 356
384385

385386
#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
386387

387388
#define __NR_O32_Linux 4000
388-
#define __NR_O32_Linux_syscalls 355
389+
#define __NR_O32_Linux_syscalls 356
389390

390391
#if _MIPS_SIM == _MIPS_SIM_ABI64
391392

@@ -709,16 +710,17 @@
709710
#define __NR_getrandom (__NR_Linux + 313)
710711
#define __NR_memfd_create (__NR_Linux + 314)
711712
#define __NR_bpf (__NR_Linux + 315)
713+
#define __NR_execveat (__NR_Linux + 316)
712714

713715
/*
714716
* Offset of the last Linux 64-bit flavoured syscall
715717
*/
716-
#define __NR_Linux_syscalls 315
718+
#define __NR_Linux_syscalls 316
717719

718720
#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
719721

720722
#define __NR_64_Linux 5000
721-
#define __NR_64_Linux_syscalls 315
723+
#define __NR_64_Linux_syscalls 316
722724

723725
#if _MIPS_SIM == _MIPS_SIM_NABI32
724726

@@ -1046,15 +1048,16 @@
10461048
#define __NR_getrandom (__NR_Linux + 317)
10471049
#define __NR_memfd_create (__NR_Linux + 318)
10481050
#define __NR_bpf (__NR_Linux + 319)
1051+
#define __NR_execveat (__NR_Linux + 320)
10491052

10501053
/*
10511054
* Offset of the last N32 flavoured syscall
10521055
*/
1053-
#define __NR_Linux_syscalls 319
1056+
#define __NR_Linux_syscalls 320
10541057

10551058
#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
10561059

10571060
#define __NR_N32_Linux 6000
1058-
#define __NR_N32_Linux_syscalls 319
1061+
#define __NR_N32_Linux_syscalls 320
10591062

10601063
#endif /* _UAPI_ASM_UNISTD_H */

arch/mips/kernel/scall32-o32.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,3 +580,4 @@ EXPORT(sys_call_table)
580580
PTR sys_getrandom
581581
PTR sys_memfd_create
582582
PTR sys_bpf /* 4355 */
583+
PTR sys_execveat

arch/mips/kernel/scall64-64.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,4 +435,5 @@ EXPORT(sys_call_table)
435435
PTR sys_getrandom
436436
PTR sys_memfd_create
437437
PTR sys_bpf /* 5315 */
438+
PTR sys_execveat
438439
.size sys_call_table,.-sys_call_table

arch/mips/kernel/scall64-n32.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,4 +428,5 @@ EXPORT(sysn32_call_table)
428428
PTR sys_getrandom
429429
PTR sys_memfd_create
430430
PTR sys_bpf
431+
PTR compat_sys_execveat /* 6320 */
431432
.size sysn32_call_table,.-sysn32_call_table

arch/mips/kernel/scall64-o32.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,4 +565,5 @@ EXPORT(sys32_call_table)
565565
PTR sys_getrandom
566566
PTR sys_memfd_create
567567
PTR sys_bpf /* 4355 */
568+
PTR compat_sys_execveat
568569
.size sys32_call_table,.-sys32_call_table

0 commit comments

Comments
 (0)