Nmi Handler - Intel NetStructure ZT 5504 Manual

System master processor board
Table of Contents

Advertisement

NMI Handler

Because an NMI may originate from a source such as a RAM Error Correction Code (ECC)
error, the NMI handler cannot assume that an NMI occurred due to a watchdog timeout.
Therefore, the NMI handler must check the watchdog status register before taking watchdog-
related emergency action. When the NMI handler completes handling the emergency, it
invokes the original NMI Handler (discussed above). The code to do this might look like the
following:
#define WD_NMI_DETECT_BIT_SET
void WatchdogIsr(void){
if(inb(WD_CSR_IO_ADDRESS) & WD_NMI_DETECT_BIT_SET){
TripAlarm();
TurnOffTheGas();
}
_chain_intr(OldNmiIsr);
}
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
0x40
// Bit indicates an NMI occurred, set.
//
//
//
//
// Did the watchdog cause the NMI?
//
//
// Take care of essential tasks.
//
//
//
// Invoke the originally installed ISR.
7. Watchdog Timer
50

Advertisement

Table of Contents
loading

Table of Contents