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: sawst46+@pitt.edu (Scott Wood) Subject: Re: accessing Alpha CPU registers from panic() Date: 1999/12/17 Message-ID: #1/1 X-Deja-AN: 561748170 References: <3857D503.38CFE9EB@dtn.ntl.com> <83bbid$all$1@nnrp1.deja.com> <3859465A.686E4102@dtn.ntl.com> X-Trace: typhoon1.gnilink.net 945390783 151.201.29.18 (Thu, 16 Dec 1999 19:33:03 EST) Organization: Who needs it? User-Agent: slrn/0.9.5.3 (UNIX) NNTP-Posting-Date: Thu, 16 Dec 1999 19:33:03 EST Newsgroups: comp.os.linux.alpha On Thu, 16 Dec 1999 20:06:50 +0000, Chris 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