17.11.2012 Views

MVME5100 Single Board Computer Programmer's Reference Guide

MVME5100 Single Board Computer Programmer's Reference Guide

MVME5100 Single Board Computer Programmer's Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2<br />

Hawk PCI Host Bridge & Multi-Processor Interrupt Controller<br />

Programming Notes<br />

External Interrupt Service<br />

The following summarizes how an external interrupt is serviced:<br />

❏ An external interrupt occurs.<br />

❏ The processor state is saved in the machine status save/restore<br />

registers. A new value is loaded into the Machine State Register<br />

(MSR). The External Interrupt Enable bit in the new MSR (MSRee)<br />

is set to zero. Control is transferred to the O/S external interrupt<br />

handler.<br />

❏ The external interrupt handler calculates the address of the Interrupt<br />

Acknowledge register for this processor (MPIC Base Address +<br />

0x200A0) + (processor ID shifted left 12 bits).<br />

❏ The external interrupt handler issues an Interrupt Acknowledge<br />

request to read the interrupt vector from the Hawk’s MPIC. If the<br />

interrupt vector indicates the interrupt source is the 8259, the<br />

interrupt handler issues a second Interrupt Acknowledge request to<br />

read the interrupt vector from the 8259. The Hawk’s MPIC does not<br />

interact with the vector fetch from the 8259.<br />

❏ The interrupt handler saves the processor state and other interruptspecific<br />

information in system memory and re-enables for external<br />

interrupts (the MSRee bit is set to 1). MPIC blocks interrupts from<br />

sources with equal or lower priority until an End-of-Interrupt is<br />

received for that interrupt source. Interrupts from higher priority<br />

interrupt sources continue to be enabled. If the interrupt source is the<br />

8259, the interrupt handler issues an EOI request to the MPIC. This<br />

resets the In-Service bit for the 8259 within the MPIC and allows it<br />

to recognize higher priority interrupt requests, if any, from the 8259.<br />

If none of the nested interrupt modes of the 8259 are enabled, the<br />

interrupt handler issues an EOI request to the 8259.<br />

2-62 <strong>Computer</strong> Group Literature Center Web Site

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!