Interrupt Service Routines: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
give information on how the cpu calls the handlers |
m fixed a small mistake |
||
Line 19: | Line 19: | ||
The CS value is padded with two bytes to form a doubleword. |
The CS value is padded with two bytes to form a doubleword. |
||
If the gate type is a trap gate, the CPU will clear the interrupt flag. If the interrupt is an exception, the CPU will push an error code onto the stack, as a doubleword. |
If the gate type is not a trap gate, the CPU will clear the interrupt flag. If the interrupt is an exception, the CPU will push an error code onto the stack, as a doubleword. |
||
The CPU will load the segment-selector value from the associated IDT descriptor into CS. |
The CPU will load the segment-selector value from the associated IDT descriptor into CS. |