]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: implementation for arch_set_user_pkey_access()
authorRam Pai <linuxram@us.ibm.com>
Fri, 19 Jan 2018 01:50:29 +0000 (17:50 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jan 2018 11:58:59 +0000 (22:58 +1100)
commitdf88d84385a037b5e335cdd940eb868ccaa02119
treed9902039301c44908f92ac7a23242cbdb9261ca5
parent3e49ef249a621d42e5003d243f7bd17414026f40
powerpc: implementation for arch_set_user_pkey_access()

This patch provides the detailed implementation for
a user to allocate a key and enable it in the hardware.

It provides the plumbing, but it cannot be used till
the system call is implemented. The next patch  will
do so.

Reviewed-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/pkeys.h
arch/powerpc/mm/pkeys.c