IRQ(中断请求)
时间:2020-02-23 14:39:22 来源:igfitidea点击:
中断请求(IRQ)是发送到处理器的硬件信号,指示它暂停其当前活动并处理一些外部事件,例如键盘输入或者鼠标移动。
在基于X86的计算机系统中,IRQS编号为0到15.
包括X86-64系统,包括X86-64系统,提供超过这16个中断(通常为24个)。
一些中断用于特定目的,例如键盘和实时时钟;其他人有常见的用途,但可能会重新分配;有些可用于可能添加到系统的另外设备。
以下是X86系统中的IRQS列表及其常用目的:
IRQ | 使用说明 |
---|---|
0 | system timer (cannot be changed) 系统定时器(不能更改) |
1 | keyboard controller (cannot be changed) 键盘控制器(不能更改) |
2 | cascaded signals from IRQs 8 -15 IRQ8-15级联信号 |
3 | second RS-232 serial port (COM2: in Windows) 第二个RS-232串口(COM 2:in Windows) |
4 | first RS-232 serial port (COM1: in Windows) 第一个RS-232串口(Com1:in Windows) |
5 | parallel port 2 and 3 or sound card 并行口2和3或声卡 |
6 | floppy disk controller 软盘控制器 |
7 | first parallel port 第一并行口 |
8 | real-time clock 实时时钟 |
9 | open interrupt 开放中断 |
10 | open interrupt 开放中断 |
11 | open interrupt 开放中断 |
12 | PS/2 mouse PS/2鼠标 |
13 | math coprocessor 数学协处理器 |
14 | primary ATA channel 主ATA信道 |
15 | secondary ATA channel 二级ATA信道 |
在Linux中,IRQ映射存储在/proc /interrupts文件中:
sudo cat /proc/interrupts
在上面的示例中,我们可以看到使用每个IRQ的驱动程序的名称。
例如,软盘驱动程序使用IRQ 6.