Question: 31. (15 pts] The following are steps in a sequential Interrupt handling. These steps are in the user-to-kernel direction, while the steps in the opposite
![31. (15 pts] The following are steps in a "sequential Interrupt](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3ad6c518ce_67566f3ad6bd586d.jpg)
31. (15 pts] The following are steps in a "sequential Interrupt handling. These steps are in the user-to-kernel direction, while the steps in the opposite direction are simply reversed. Hardware does the following: 1. Mask further interrupts 2. Change mode to Kernel 3. Copy PC, SP, EFLAGS to the Kernel Interrupt Stack (KIS) 4. Change SP: to the KIS (above the stored PC, SP, EFLAGS) 5. Change PC: Invoke the interrupt handler Software (i.e., the handler code) does the following: 1. Stores the rest of the general-purpose registers being used by the interrupted process 2. Performs the rest of the interrupt handling operation Now, answer the following questions: (a) [7 pts] What changes would you make in the steps below so that nested Interrupts can be handled? (b) (3 pts) For sequential interrupt handling, can you interchange steps 2 and 3? Explain. (c) (2 pts) For sequential interrupt handling, can we interchange step 1 and 2? Explain. (d) [3 pts) For sequential interrupt handling, can we interchange step 1 and 3? Explain. 31. (15 pts] The following are steps in a "sequential Interrupt handling. These steps are in the user-to-kernel direction, while the steps in the opposite direction are simply reversed. Hardware does the following: 1. Mask further interrupts 2. Change mode to Kernel 3. Copy PC, SP, EFLAGS to the Kernel Interrupt Stack (KIS) 4. Change SP: to the KIS (above the stored PC, SP, EFLAGS) 5. Change PC: Invoke the interrupt handler Software (i.e., the handler code) does the following: 1. Stores the rest of the general-purpose registers being used by the interrupted process 2. Performs the rest of the interrupt handling operation Now, answer the following questions: (a) [7 pts] What changes would you make in the steps below so that nested Interrupts can be handled? (b) (3 pts) For sequential interrupt handling, can you interchange steps 2 and 3? Explain. (c) (2 pts) For sequential interrupt handling, can we interchange step 1 and 2? Explain. (d) [3 pts) For sequential interrupt handling, can we interchange step 1 and 3? Explain
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
