On Tue, Oct 07, 2003 at 04:21:20PM -0400, Steven J. Hill wrote: > I wanted to propose an NMI handling interface. I have attached > the header file and patches to 'arch/mips/kernel/traps.c'. The > user need only specify the offset address for the NMI vector > code and then they can also specify their own desired NMI > function. Comments? That hook you're proposing isn't even necessary in generic code. NMI on MIPS hardware is a fairly odd type of exception - it goes straight to 0xbfc00000 which usually is a a firmware address - and lots of firmware doesn't even offer an NMI hook. So for those cases where it's possible, you need to do something firmware anyway before jumping to Linux's NMI handler. An additional problem with the NMI design of MIPS is it's using ErrorEPC, just like cache errors so you better pray - or simply design systems only to rely on NMI for debugging and catastrophic failures. Ralf