Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: brianw.hall@compaq.com
Subject: Re: accessing Alpha CPU registers from panic()
Date: 1999/12/16	[thread overview]
Message-ID: <83bbid$all$1@nnrp1.deja.com> (raw)
In-Reply-To: 3857D503.38CFE9EB@dtn.ntl.com

Problem is, the call to panic() doesn't include the registers to start
with, so where do I get them from? Trying to figure out how to get the
information off the kernel stack...

In article <3857D503.38CFE9EB@dtn.ntl.com>,
  Chris <quattro_net@dtn.ntl.com> wrote:
> 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() !
> >
>


Sent via Deja.com http://www.deja.com/
Before you buy.



  reply	other threads:[~1999-12-16  5:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <15AD5D7936F8D21198240000F831776E3E7FF3@dboexc1.dbo.cpqcorp.net>
1999-12-15  5:00 ` accessing Alpha CPU registers from panic() Brian Hall
1999-12-15  5:00   ` Chris
1999-12-16  5:00     ` brianw.hall [this message]
1999-12-16  5:00       ` Chris
1999-12-17  5:00         ` Scott Wood
1999-12-13  5:00 Brian Hall
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox