diff options
author | Ram Pai <linuxram@us.ibm.com> | 2018-01-18 17:50:32 -0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-01-20 22:59:01 +1100 |
commit | 5586cf61e108019565bb936daeb296e53df1c1d6 (patch) | |
tree | 254b54bb1a7b565721de3756a2532aab45013968 /arch/powerpc/include/asm/book3s/64 | |
parent | 06bb53b33804613627c7ca1eda246459a7be2803 (diff) | |
download | blackbird-op-linux-5586cf61e108019565bb936daeb296e53df1c1d6.tar.gz blackbird-op-linux-5586cf61e108019565bb936daeb296e53df1c1d6.zip |
powerpc: introduce execute-only pkey
This patch provides the implementation of execute-only pkey.
The architecture-independent layer expects the arch-dependent
layer, to support the ability to create and enable a special
key which has execute-only permission.
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/book3s/64')
-rw-r--r-- | arch/powerpc/include/asm/book3s/64/mmu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/book3s/64/mmu.h b/arch/powerpc/include/asm/book3s/64/mmu.h index 37ef23cc1136..0abeb0e2d616 100644 --- a/arch/powerpc/include/asm/book3s/64/mmu.h +++ b/arch/powerpc/include/asm/book3s/64/mmu.h @@ -116,6 +116,7 @@ typedef struct { * bit unset -> key available for allocation */ u32 pkey_allocation_map; + s16 execute_only_pkey; /* key holding execute-only protection */ #endif } mm_context_t; |