Question: Question 22 (2 points) Put the following steps for handling interrupt in correct order. 1) actual work of the handler 2) disable interrupt 3) enable
Question 22 (2 points)
Put the following steps for handling interrupt in correct order.
1) actual work of the handler
2) disable interrupt
3) enable interrupt
4) restore k0 from stack
5) restore state
6) return from interrupt
7) save k0 on stack
8) save state
Question 22 options:
|
| 7) 3) 8) 1) 5) 2) 4) 6) |
|
| 7) 3) 1) 8) 5) 2) 6) 4) |
|
| 7) 3) 8) 1) 6) 2) 4) 5) |
|
| 7) 3) 8) 1) 5) 6) 4) 2) |
Question 23 (2 points)
Which one cannot make processor know which device has requested an interrupt?
Question 23 options:
|
| the device supplies the address of its interrupt handler |
|
| the device provides a vector into a table of interrupt handler addresses |
|
| the device delivers a table containing its identity to the processor |
|
| the processor cannot acknowledge the device for the interruption |
Question 24 (2 points)
In the following interrupt handler code, please select the one which does not belong.
Question 24 options:
|
| enable interrupts |
|
| save processor registers |
|
| restore PC |
|
| return from interrupt |
Question 25 (2 points)
In the following actions in the INT macro state, please select the one that does not belong.
Question 25 options:
|
| save PC value retrieved from the vector table to PC |
|
| save PC to $k0 |
|
| ACK INT by asserting INTA |
|
| retrieve PC address from the interrupt vector table |
Question 26 (2 points)
Which one of the following activities is an Exception?
Question 26 options:
|
| System Call |
|
| Accessing illegal memory address |
|
| page fault |
|
| reading of hard drive completion |
Question 27 (2 points)
Which one of the following activities is a Trap?
Question 27 options:
|
| System Call |
|
| Memory overflow |
|
| accessing illegal memory address |
|
| I/O device completion |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
