From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mundt Subject: Re: [PATCH 1/23] Make register values available to panic notifiers Date: Thu, 15 Apr 2010 11:54:10 +0900 Message-ID: <20100415025409.GB8014@linux-sh.org> References: <20100412060609.GA25273@dvomlehn-lnx2.corp.sa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from 124x34x33x190.ap124.ftth.ucom.ne.jp ([124.34.33.190]:42042 "EHLO master.linux-sh.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756667Ab0DOCyN (ORCPT ); Wed, 14 Apr 2010 22:54:13 -0400 Content-Disposition: inline In-Reply-To: <20100412060609.GA25273@dvomlehn-lnx2.corp.sa.net> Sender: linux-arch-owner@vger.kernel.org List-ID: To: David VomLehn Cc: linux-arch@vger.kernel.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org On Sun, Apr 11, 2010 at 11:06:09PM -0700, David VomLehn wrote: > o A save_ptregs() function for the processor. I've taken a whack at > doing this for all of the processors. I have tested x86 and MIPS > versions. I was able to find cross compilers for ARM, ... and the > code compiles cleanly. Everything else, well, what you see is sheer > fantasy. You are welcome to chortle with merriment. Perhaps I'm missing something obvious, but is there some reason why you can't just reuse the crash_setup_regs() code? MIPS doesn't implement it presumably because it's lacking kexec crash kernel support, but it would make sense to make current ptregs saving more generic if there are going to be multiple users for it.