linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 4xx critical exceptions
@ 2002-12-04 23:00 Brian Kuschak
  2002-12-05  0:11 ` Matt Porter
  2002-12-06  9:22 ` Kenneth Johansson
  0 siblings, 2 replies; 3+ messages in thread
From: Brian Kuschak @ 2002-12-04 23:00 UTC (permalink / raw)
  To: linuxppc-embedded


I've seen a few postings regarding critical exceptions
on the 405GP, but I don't see anything new in the
linuxppc_2_5 versions of the relevant files.

I'm interested in using the watchdog interrupt as a
critical exception.  I have somthing that sort-of
works, in that I get wdt interrupts and service them
appropriately, but I'm getting panics on a regular
basis.

The COMMON_PROLOG in head_4xx.S uses SPRG0,1 to
temporarily save r20, r21 for scratch use.  Problem is
this prologue is used for both critical and
non-critical interrupts.  As I understand it, MSR[EE]
is cleared for external interrupts, but MSR[CE] is
not.  If a critical interrupt occurs while handling a
non-critical interrupt, the SPRG0,1 can be overwritten
while handling the critical interrupt.

I'm guessing we don't have any unused SPRGx registers
to use here.  I was thinking about temporarily
disabling CE until saving SPRG0,1, but that can't be
done without using at least one register, and none of
them are saved at that point.

Any ideas?

Regards,
Brian

P.S. BTW, is bk://ppc.bkbits.net/linuxppc_2_5 the
right place for the latest 2.5 code?


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-06  9:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-04 23:00 4xx critical exceptions Brian Kuschak
2002-12-05  0:11 ` Matt Porter
2002-12-06  9:22 ` Kenneth Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).