From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765248AbXGPAuo (ORCPT ); Sun, 15 Jul 2007 20:50:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760843AbXGPAtG (ORCPT ); Sun, 15 Jul 2007 20:49:06 -0400 Received: from rex.snapgear.com ([203.143.235.140]:39441 "EHLO snapgear.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756328AbXGPAtB (ORCPT ); Sun, 15 Jul 2007 20:49:01 -0400 Date: Mon, 16 Jul 2007 10:48:11 +1000 From: Greg Ungerer Message-Id: <200707160048.l6G0mBww010139@goober> To: torvalds@linux-foundation.org Subject: [M68KNOMMU]: start dump from exception stack Cc: gerg@uclinux.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org In die_if_kernel() start the stack dump at the exception-time SP, not at the SP with all the saved registers; the stack below exception-time sp contains only exception-saved values and is already printed in details just before. Signed-off-by: Philippe De Muyter Signed-off-by: Greg Ungerer --- diff -Naur linux-2.6.22/arch/m68knommu/kernel/traps.c linux-2.6.22-uc0/arch/m68knommu/kernel/traps.c --- linux-2.6.22/arch/m68knommu/kernel/traps.c 2007-07-12 15:23:02.000000000 +1000 +++ linux-2.6.22-uc0/arch/m68knommu/kernel/traps.c 2007-07-12 15:27:00.000000000 +1000 @@ -82,7 +80,7 @@ printk(KERN_EMERG "Process %s (pid: %d, stackpage=%08lx)\n", current->comm, current->pid, PAGE_SIZE+(unsigned long)current); - show_stack(NULL, (unsigned long *)fp); + show_stack(NULL, (unsigned long *)(fp+1)); do_exit(SIGSEGV); }