Patchwork powerpc: Set the NOTE type for SPE regset

login
register
mail settings
Submitter Suzuki Poulose
Date Aug. 27, 2013, 7:52 a.m.
Message ID <20130827075156.18056.87943.stgit@suzukikp.in.ibm.com>
Download mbox | patch
Permalink /patch/270051/
State Accepted, archived
Commit a0b38b4e7858c76e7e53510f24d6bf22cab144a8
Delegated to: Scott Wood
Headers show

Comments

Suzuki Poulose - Aug. 27, 2013, 7:52 a.m.
The regset defintion for SPE doesn't have the core_note_type
set, which prevents it from being dumped. Add the note type
NT_PPC_SPE for SPE regset.

Signed-off-by: Suzuki K Poulose <suzuki@in.ibm.com>
Cc:	Roland McGrath <roland@hack.frob.com>
---
 arch/powerpc/kernel/ptrace.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
index 9a0d24c..16edc5d 100644
--- a/arch/powerpc/kernel/ptrace.c
+++ b/arch/powerpc/kernel/ptrace.c
@@ -657,7 +657,7 @@  static const struct user_regset native_regsets[] = {
 #endif
 #ifdef CONFIG_SPE
 	[REGSET_SPE] = {
-		.n = 35,
+		.core_note_type = NT_PPC_SPE, .n = 35,
 		.size = sizeof(u32), .align = sizeof(u32),
 		.active = evr_active, .get = evr_get, .set = evr_set
 	},