Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: sawst46+@pitt.edu (Scott Wood)
Subject: Re: accessing Alpha CPU registers from panic()
Date: 1999/12/17	[thread overview]
Message-ID: <slrn85j0v4.28t.sawst46+@Q.geekland.cx> (raw)
In-Reply-To: 3859465A.686E4102@dtn.ntl.com

On Thu, 16 Dec 1999 20:06:50 +0000, Chris <quattro_net@dtn.ntl.com> wrote:
>brianw.hall@compaq.com wrote:
>Yes, but what registers are changed between the function calling panic()
>and entry to panic() ?. I'm no Alpha cpu or Linux guru, but no register
>contents should be changed during the call. If the call to panic() is a
>result of a context switch, then the register values of the calling
>process should be in the process control block. 
>
>Normally, the program counter and stack pointer would be saved at a
>minimum, but the remaining registers should be in the state they were in
>when panic() was called.

There's also the argument registers (a0 at the least, plus one per
extra argument).  The original ra is stored on the stack and
replaced by the calling address, and the stack frame size for panic is
subtracted from sp.

Everything else should be the same, though.

-Scott





  reply	other threads:[~1999-12-17  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
1999-12-16  5:00       ` Chris
1999-12-17  5:00         ` Scott Wood [this message]
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