Skip to content

Commit

Permalink
powerpc: sys_pkey_mprotect() system call
Browse files Browse the repository at this point in the history
Patch provides the ability for a process to
associate a pkey with a address range.

Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Ram Pai authored and Michael Ellerman committed Jan 20, 2018
1 parent 9499ec1 commit 3350eb2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/include/asm/systbl.h
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,4 @@ SYSCALL(kexec_file_load)
SYSCALL(statx)
SYSCALL(pkey_alloc)
SYSCALL(pkey_free)
SYSCALL(pkey_mprotect)
4 changes: 1 addition & 3 deletions arch/powerpc/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
#include <uapi/asm/unistd.h>


#define NR_syscalls 386
#define NR_syscalls 387

#define __NR__exit __NR_exit

#define __IGNORE_pkey_mprotect

#ifndef __ASSEMBLY__

#include <linux/types.h>
Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/include/uapi/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -397,5 +397,6 @@
#define __NR_statx 383
#define __NR_pkey_alloc 384
#define __NR_pkey_free 385
#define __NR_pkey_mprotect 386

#endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */

0 comments on commit 3350eb2

Please sign in to comment.