From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Owens Date: Thu, 06 May 2004 00:08:21 +0000 Subject: Re: 2.6.5 unwind problem with rp <- r0 Message-Id: <20213.1083802101@ocs3.ocs.com.au> List-Id: References: <4885.1083211711@kao2.melbourne.sgi.com> In-Reply-To: <4885.1083211711@kao2.melbourne.sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org On Wed, 5 May 2004 16:38:25 -0700, David Mosberger wrote: >>>>>> On Wed, 05 May 2004 10:04:58 +1000, Keith Owens said: > > Keith> This ugly kludge handles unwinding from a value in r0. It > Keith> gets the kernel unwinder working again, until it can be > Keith> replaced by libunwind. > >I hate kludges. > >An alternative that might make you happy: in kernel_thread(), >initialize regs.sw.r4 to 0, then change start_kernel_thread's >prologue to: > > .prologue > .save rp, r4 > .body > >Want to try this? I would rather keep the ability to .save rp,r0 and fix the unwinder to cope, even if it needs a kludge. After all, a great luminary said that .save rp,r0 was the correct fix back in March 2003. http://marc.theaimsgroup.com/?l=linux-ia64&m5590709806090&w=2