Skip to content

Commit 7d59deb

Browse files
pranithmpe
authored andcommitted
powerpc: Wire up sys_seccomp(), sys_getrandom() and sys_memfd_create()
This patch wires up three new syscalls for powerpc. The three new syscalls are seccomp, getrandom and memfd_create. Signed-off-by: Pranith Kumar <[email protected]> Reviewed-by: David Herrmann <[email protected]>
1 parent d11dfd1 commit 7d59deb

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

arch/powerpc/include/asm/systbl.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,3 +362,6 @@ SYSCALL(ni_syscall) /* sys_kcmp */
362362
SYSCALL_SPU(sched_setattr)
363363
SYSCALL_SPU(sched_getattr)
364364
SYSCALL_SPU(renameat2)
365+
SYSCALL_SPU(seccomp)
366+
SYSCALL_SPU(getrandom)
367+
SYSCALL_SPU(memfd_create)

arch/powerpc/include/asm/unistd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <uapi/asm/unistd.h>
1313

1414

15-
#define __NR_syscalls 358
15+
#define __NR_syscalls 361
1616

1717
#define __NR__exit __NR_exit
1818
#define NR_syscalls __NR_syscalls

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,5 +380,8 @@
380380
#define __NR_sched_setattr 355
381381
#define __NR_sched_getattr 356
382382
#define __NR_renameat2 357
383+
#define __NR_seccomp 358
384+
#define __NR_getrandom 359
385+
#define __NR_memfd_create 360
383386

384387
#endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */

0 commit comments

Comments
 (0)