From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,89a0d2ba77ca2cba X-Google-Attributes: gid111c93,public From: Chris Subject: Re: accessing Alpha CPU registers from panic() Date: 1999/12/15 Message-ID: <3857D503.38CFE9EB@dtn.ntl.com>#1/1 X-Deja-AN: 561047692 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@net.ntl.com X-Trace: nclient3-gui.server.dtn.ntl.com 945280412 13699 212.250.67.139 (15 Dec 1999 17:53:32 GMT) Organization: Man Mime-Version: 1.0 NNTP-Posting-Date: 15 Dec 1999 17:53:32 GMT Newsgroups: comp.os.linux.alpha Brian Hall wrote: > > Unfortunately, all the code in the dik_* functions depends on the registers > being passed in, as far as I can tell. When panic() is called, the registers are > not included in the arguments. I think somehow I need to get the PC and RA (r26) > from the previous stack frame or something. > Hi, What you could do is rename panic() to panic_1() or somesuch, then write a little slip function called panic() that save saves / prints the registers, then calls panic_1() with registers intact. It's the sort of thing done all the time in embedded work, you can say if that sounds stupid in Linux... Rgrds, Chris > I was hoping to get the registers from PALcode, but I don't see any way of doing > that, other than halting the processor, which would give me the info I need in > the HWRPB. The last thing done in panic() is a halt, is there a way to do that > and then have the PALcode jump to my routine? Of course, even if this worked, > the PC and RA in the HWRPB would just be from the panic() routine; I need those > addresses from the function that *called* panic() ! >