Interrupt Door Trap Door _CPU

Source: Internet
Author: User
The difference between the interruption of the gate and the transfer through the trap door is only the processing of the IF sign. For the interrupt door, the if is placed 0 in the transfer process, INTR interrupts are shielded during the execution of the handler (of course, in the interrupt handler, you can open the interrupt by artificially setting the IF flag so that the response is allowed to be masked during the execution of the handler); for the trap door, keep the IF bit unchanged during the transfer process, That is, if the IF bit turns out to be 1, then the INTR interrupt is allowed after the trap door is transferred to the handler. Therefore, the interrupt door is most suitable for processing interrupts, while trap doors are suitable for handling exceptions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.