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
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. .
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)
Power failure is an event outside the CPU, that is, interrupts. Interrupts can be masked, but exceptions cannot be masked.
Access control instructions (trap instructions) are also exceptions. C is obviously wrong!
In order to distinguish and save the interrupt signals issued by different interrupt sources.
I am a classmate of Ganggang, a newcomer to net security. ☜(ˆ▽ˆ)
(crazy hintlike! attention! Forward! ! ! like! attention! Forward! ! !)
* 您的支持是罡罡同学前进的最大动力!