Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760195AbZDYAO7 (ORCPT ); Fri, 24 Apr 2009 20:14:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752528AbZDYAOs (ORCPT ); Fri, 24 Apr 2009 20:14:48 -0400 Received: from mx1.redhat.com ([66.187.233.31]:43054 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759328AbZDYAOr (ORCPT ); Fri, 24 Apr 2009 20:14:47 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Russell King X-Fcc: ~/Mail/linus Cc: Christoph Hellwig , linux-kernel@vger.kernel.org In-Reply-To: Roland McGrath's message of Friday, 24 April 2009 17:06:34 -0700 <20090425000634.313E4FC3C8@magilla.sf.frob.com> References: <20090425000634.313E4FC3C8@magilla.sf.frob.com> Subject: [PATCH 12/17] arm: user_regset: iWMMXt in core dumps Message-Id: <20090425001259.CDC92FC3C8@magilla.sf.frob.com> Date: Fri, 24 Apr 2009 17:12:59 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1495 Lines: 38 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 --- 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 */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/