[v2] powerpc: Add values from Linux 4.8 to <elf.h>

Submitted by Gustavo Romero on Aug. 8, 2017, 8:54 p.m.

Details

Message ID 1502225696-6223-1-git-send-email-gromero@linux.vnet.ibm.com
State New
Headers show

Commit Message

Gustavo Romero Aug. 8, 2017, 8:54 p.m.
Add powerpc specific core note sections available since Linux v4.8.
---
 elf/elf.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Gustavo Romero Aug. 14, 2017, 3:01 p.m.
Hi Andreas,

Could you please sponsor that change?


Regards,
Gustavo

On 08-08-2017 17:54, Gustavo Romero wrote:
> Add powerpc specific core note sections available since Linux v4.8.
> ---
>  elf/elf.h | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/elf/elf.h b/elf/elf.h
> index 3900b4c..2b05546 100644
> --- a/elf/elf.h
> +++ b/elf/elf.h
> @@ -762,6 +762,19 @@ typedef struct
>  #define NT_PPC_VMX	0x100		/* PowerPC Altivec/VMX registers */
>  #define NT_PPC_SPE	0x101		/* PowerPC SPE/EVR registers */
>  #define NT_PPC_VSX	0x102		/* PowerPC VSX registers */
> +#define NT_PPC_TAR	0x103		/* Target Address Register */
> +#define NT_PPC_PPR	0x104		/* Program Priority Register */
> +#define NT_PPC_DSCR	0x105		/* Data Stream Control Register */
> +#define NT_PPC_EBB	0x106		/* Event Based Branch Registers */
> +#define NT_PPC_PMU	0x107		/* Performance Monitor Registers */
> +#define NT_PPC_TM_CGPR	0x108		/* TM checkpointed GPR Registers */
> +#define NT_PPC_TM_CFPR	0x109		/* TM checkpointed FPR Registers */
> +#define NT_PPC_TM_CVMX	0x10a		/* TM checkpointed VMX Registers */
> +#define NT_PPC_TM_CVSX	0x10b		/* TM checkpointed VSX Registers */
> +#define NT_PPC_TM_SPR	0x10c		/* TM Special Purpose Registers */
> +#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_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 */
>
Andreas Schwab Aug. 14, 2017, 3:23 p.m.
Please add a ChangeLog entry.

Andreas.
Adhemerval Zanella Aug. 14, 2017, 3:23 p.m.
On 14/08/2017 12:01, Gustavo Romero wrote:
> Hi Andreas,
> 
> Could you please sponsor that change?
> 
> 
> Regards,
> Gustavo

LGTM (assuming a proper ChangeLog as for v1 you sent).

> 
> On 08-08-2017 17:54, Gustavo Romero wrote:
>> Add powerpc specific core note sections available since Linux v4.8.
>> ---
>>  elf/elf.h | 13 +++++++++++++
>>  1 file changed, 13 insertions(+)
>>
>> diff --git a/elf/elf.h b/elf/elf.h
>> index 3900b4c..2b05546 100644
>> --- a/elf/elf.h
>> +++ b/elf/elf.h
>> @@ -762,6 +762,19 @@ typedef struct
>>  #define NT_PPC_VMX	0x100		/* PowerPC Altivec/VMX registers */
>>  #define NT_PPC_SPE	0x101		/* PowerPC SPE/EVR registers */
>>  #define NT_PPC_VSX	0x102		/* PowerPC VSX registers */
>> +#define NT_PPC_TAR	0x103		/* Target Address Register */
>> +#define NT_PPC_PPR	0x104		/* Program Priority Register */
>> +#define NT_PPC_DSCR	0x105		/* Data Stream Control Register */
>> +#define NT_PPC_EBB	0x106		/* Event Based Branch Registers */
>> +#define NT_PPC_PMU	0x107		/* Performance Monitor Registers */
>> +#define NT_PPC_TM_CGPR	0x108		/* TM checkpointed GPR Registers */
>> +#define NT_PPC_TM_CFPR	0x109		/* TM checkpointed FPR Registers */
>> +#define NT_PPC_TM_CVMX	0x10a		/* TM checkpointed VMX Registers */
>> +#define NT_PPC_TM_CVSX	0x10b		/* TM checkpointed VSX Registers */
>> +#define NT_PPC_TM_SPR	0x10c		/* TM Special Purpose Registers */
>> +#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_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 */
>>
>

Patch hide | download patch | download mbox

diff --git a/elf/elf.h b/elf/elf.h
index 3900b4c..2b05546 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -762,6 +762,19 @@  typedef struct
 #define NT_PPC_VMX	0x100		/* PowerPC Altivec/VMX registers */
 #define NT_PPC_SPE	0x101		/* PowerPC SPE/EVR registers */
 #define NT_PPC_VSX	0x102		/* PowerPC VSX registers */
+#define NT_PPC_TAR	0x103		/* Target Address Register */
+#define NT_PPC_PPR	0x104		/* Program Priority Register */
+#define NT_PPC_DSCR	0x105		/* Data Stream Control Register */
+#define NT_PPC_EBB	0x106		/* Event Based Branch Registers */
+#define NT_PPC_PMU	0x107		/* Performance Monitor Registers */
+#define NT_PPC_TM_CGPR	0x108		/* TM checkpointed GPR Registers */
+#define NT_PPC_TM_CFPR	0x109		/* TM checkpointed FPR Registers */
+#define NT_PPC_TM_CVMX	0x10a		/* TM checkpointed VMX Registers */
+#define NT_PPC_TM_CVSX	0x10b		/* TM checkpointed VSX Registers */
+#define NT_PPC_TM_SPR	0x10c		/* TM Special Purpose Registers */
+#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_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 */