Processing Interrupts

Once the CPU has been informed of an interrupt, it delegates further handling to a software routine that corrects the fault, provides special handling, or informs a user process of an external event. Because each interrupt and each exception has a unique number, the kernel uses an array containing pointers to handler functions. The associated interrupt number is found by referring to the array position, as shown in Figure 14-1.

-► handle_page_fault

—handle_whatever

n n+1 n+2 n+3 n+4 n+5 n+6 n+7 Figure 14-1: Managing interrupt handlers.

n n+1 n+2 n+3 n+4 n+5 n+6 n+7 Figure 14-1: Managing interrupt handlers.

Continue reading here: Entry and Exit Tasks

Was this article helpful?

0 0