Ulk---Chap 4:interrupts and Exceptions

Source: Internet
Author: User

An interrupt was usually defined as an event that alters the sequence of instructions executed by a

Processor. Such events correspond to electrical signals generated by hardware circuits both inside

and outside Chip.

Interrupts is often divided into synchronous and asynchronous intertupts:

synchronous interrupts is produced by the CPU control unit while executing instructions and is

Called synchronous because the control unit issues them only after terminating the execution of an

instruction.

asynchronous interrupts is generated by + hardware devices at arbitrary times with respect to

The CPU clock signals.

Intel microprocessor Manuals Designate synchronous and asynchronous interrupts as exceptions and

interrupts, respectively. We'll adopt this classification, although we'll occasionally use the term

"Interrupt signal" to designate both types of together.

Interrupts is issued by interval timers and I/O devices; For instance, the arrival of a keystroke from

A user sets off an interrupt.

Exceptions, on the other hand, is caused either by programming errors or by anomalous conditions

That must is handled by the kernel. In the first case, the kernel handles the exception by delivering

The current process one of the signals familiar to every UNIX programmer. In the second case, the

Kernel performs all the steps needed to recover from the anomalous condition, such as page fault or

A request---via an assembly language instruction such as int or sysenter ---for a kernel service.

We start by describing in the next section of the motivation for introducing such signals. We then Show

How the well-known IRQs (Interrupt requsts) issued by I/O devices give rise to interrupts, and we

Detail how 80x86 processors handle interrupts and exceptions at the hardware level. Then we illustrate

, in the sections "Initializing the Interrupt descriptor Table", how Linux initializes all the data structures

Required by the 80x86 interrupt architecture. The remaining three sections describe how Linux handles

Interrupt signals at the software level.

One word of caution before moving on:in This chapter, we cover only "classic" interrupts common to

All PCs; We do not cover the nonstandard interrupts of some architectures.

The Role of Interrupt signals

Ulk---Chap 4:interrupts and 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.