summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@linux.vnet.ibm.com>2018-01-18 17:50:43 -0800
committerMichael Ellerman <mpe@ellerman.id.au>2018-01-20 22:59:06 +1100
commitc5cc1f4df6b16646f8fae7aab523c1820bf916e8 (patch)
tree83164522643b8dc08f2825b3c7643f88cc74f0b5 /include
parent99cd1302327a2ccaedf905e9f6a8d8fd234bd485 (diff)
downloadlinux-stable-c5cc1f4df6b16646f8fae7aab523c1820bf916e8.tar.gz
linux-stable-c5cc1f4df6b16646f8fae7aab523c1820bf916e8.tar.bz2
linux-stable-c5cc1f4df6b16646f8fae7aab523c1820bf916e8.zip
powerpc/ptrace: Add memory protection key regset
The AMR/IAMR/UAMOR are part of the program context. Allow it to be accessed via ptrace and through core files. Signed-off-by: Ram Pai <linuxram@us.ibm.com> Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/elf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h
index bb6836986200..3bf73fb58045 100644
--- a/include/uapi/linux/elf.h
+++ b/include/uapi/linux/elf.h
@@ -396,6 +396,7 @@ typedef struct elf64_shdr {
#define NT_PPC_TM_CTAR 0x10d /* TM checkpointed Target Address Register */
#define NT_PPC_TM_CPPR 0x10e /* TM checkpointed Program Priority Register */
#define NT_PPC_TM_CDSCR 0x10f /* TM checkpointed Data Stream Control Register */
+#define NT_PPC_PKEY 0x110 /* Memory Protection Keys registers */
#define NT_386_TLS 0x200 /* i386 TLS slots (struct user_desc) */
#define NT_386_IOPERM 0x201 /* x86 io permission bitmap (1=deny) */
#define NT_X86_XSTATE 0x202 /* x86 extended state using xsave */