Operating System Interruption/Exception-Test Questions

I am a classmate of Ganggang, a newcomer to net security. ☜(ˆ▽ˆ)
(crazy hintlike! attention! Forward! ! ! like! attention! Forward! ! !

 * 您的支持是罡罡同学前进的最大动力!

Operating system interrupt/exception handling-test questions

Insert picture description here

External interrupts are caused by time outside the CPU, such as I/O interrupts, clock interrupts, console interrupts, and so on.
The internal interrupt is an interrupt caused by an internal event of the CPU or a program execution trapped instruction. Such as CPU failure, power failure, program error, and system service instructions (trapped instructions are also called trap instructions or access management instructions) caused by interrupts, virtual memory system page missing, arithmetic overflow, address out of bounds, illegal operation codes, etc. .
Insert picture description here
Insert picture description here
Insert picture description here
For different interrupts, the hardware will transfer to different interrupt entry programs; (multiple interrupt entry addresses)
for all exceptions, first transfer to the common entry program. (A public address, no need to look up the table)
Insert picture description here
Power failure is an event outside the CPU, that is, interrupts. Interrupts can be masked, but exceptions cannot be masked.
Insert picture description here
Access control instructions (trap instructions) are also exceptions. C is obviously wrong!
Insert picture description here
Insert picture description here
In order to distinguish and save the interrupt signals issued by different interrupt sources.

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
I am a classmate of Ganggang, a newcomer to net security. ☜(ˆ▽ˆ)
(crazy hintlike! attention! Forward! ! ! like! attention! Forward! ! !

 * 您的支持是罡罡同学前进的最大动力!

Guess you like

Origin blog.csdn.net/m0_46625346/article/details/114896183