Add NT_PPC_PKEY from Linux 4.16 to elf.h

Message ID alpine.DEB.2.20.1804192014380.7275@digraph.polyomino.org.uk
State Committed
Delegated to: Tulio Magno Quites Machado Filho
Headers

Commit Message

Joseph Myers April 19, 2018, 8:14 p.m. UTC
  This patch adds the NT_PPC_PKEY macro from Linux 4.16 to elf.h.

Tested for x86_64.

2018-04-19  Joseph Myers  <joseph@codesourcery.com>

	* elf/elf.h (NT_PPC_PKEY): New macro.
  

Comments

Tulio Magno Quites Machado Filho April 23, 2018, 6:55 p.m. UTC | #1
Joseph Myers <joseph@codesourcery.com> writes:

> This patch adds the NT_PPC_PKEY macro from Linux 4.16 to elf.h.
>
> Tested for x86_64.
>
> 2018-04-19  Joseph Myers  <joseph@codesourcery.com>
>
> 	* elf/elf.h (NT_PPC_PKEY): New macro.
>
> diff --git a/elf/elf.h b/elf/elf.h
> index f774898..a5b2811 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -780,6 +780,8 @@ typedef struct
>  					   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 */

Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
  

Patch

diff --git a/elf/elf.h b/elf/elf.h
index f774898..a5b2811 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -780,6 +780,8 @@  typedef struct
 					   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 */