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 10/17] arm: user_regset: VFP in core dumps
Date
This enables dumping the VFP state in ELF core dumps.
It gets its own note.

I reused the NT_PRXFPREG type code already used for extended-FP
state on x86, because it seems to fit logically. It would be just
as easy to define a new code called NT_ARM_VFP in linux/elf.h if
that is preferable.

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

diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index 7f3c121..5fb5ac1 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -805,6 +805,7 @@ static const struct user_regset arm_regsets[] = {
},
#ifdef CONFIG_VFP
[REGSET_VFP] = {
+ .core_note_type = NT_PRXFPREG,
.n = sizeof(struct user_vfp) / sizeof(long),
.size = sizeof(long), .align = sizeof(long),
.get = vfp_get, .set = vfp_set

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