Outline how an interrupt from each of the devices listed in the table would be handled. Section

Question:

Outline how an interrupt from each of the devices listed in the table would be handled.


Section 6.6 defines an eight-step process for handling interrupts. The Cause and Status registers together provide information on the cause of the interrupt and the status of the interrupt handling system. Explore interrupt handling by answering the questions about the following combinations of interrupts.a. Ethernet Controller Data b. Mouse Controller Mouse Controller Power Down Reboot Overheat

Data From Section 6.6

1. Logically AND the pending interrupt field and the interrupt mask field to see which enabled interrupts could be the culprit. Copies are made of these two registers using the mfc0 instruction.
2. Select the higher priority of these interrupts. The software convention is that the leftmost is the highest priority.31 Branch delay 15 15 Interrupt mask Pending interrupts 8 8 6 User mode 4 Exception level Interrupt enable 23. Save the interrupt mask field of the Status register.
4. Change the interrupt mask field to disable all interrupts of equal or lower priority.
5. Save the processor state needed to handle the interrupt.
6. To allow higher-priority interrupts, set the interrupt enable bit of the Cause register to 1.
7. Call the appropriate interrupt routine.
8. Before restoring state, set the interrupt enable bit of the Cause register to 0. This allows you to restore the interrupt mask field.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

Computer Organization And Design The Hardware Software Interface

ISBN: 9780123747501

4th Revised Edition

Authors: David A. Patterson, John L. Hennessy

Question Posted: