lkml.org 
[lkml]   [2009]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 12/17] arm: user_regset: iWMMXt in core dumps
Date
This enables dumping the iWMMXt state in ELF core dumps if it was used.
It gets its own note of the new type NT_ARM_WMMX.

Signed-off-by: Roland McGrath <roland@redhat.com>
---
arch/arm/kernel/ptrace.c | 1 +
include/linux/elf.h | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index 821ce64..d59e074 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -828,6 +828,7 @@ static const struct user_regset arm_regsets[] = {
#endif
#ifdef CONFIG_IWMMXT
[REGSET_IWMMXT] = {
+ .core_note_type = NT_ARM_WMMX,
.n = sizeof(struct iwmmxt_struct) / sizeof(int),
.size = sizeof(int), .align = sizeof(int),
.active = iwmmxt_active, .get = iwmmxt_get, .set = iwmmxt_set
diff --git a/include/linux/elf.h b/include/linux/elf.h
index 45a937b..aa8bae6 100644
--- a/include/linux/elf.h
+++ b/include/linux/elf.h
@@ -361,6 +361,7 @@ typedef struct elf64_shdr {
#define NT_PPC_VSX 0x102 /* PowerPC VSX 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_ARM_WMMX 0x300 /* ARM iWMMXt registers */


/* Note header in a PT_NOTE section */

\
 
 \ /
  Last update: 2009-04-25 02:19    [W:0.134 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site