Keyboard interrupts

I am studying material devices with low devices. I am confused between interrupts and IRQ. An example driver code that intercepts the keyboard assumes 0x31 keyboard interruption, but my microprocessor book says it is 0x09. When you open Device Manager> Keyboards-> Resources, it shows that the IRQ is 1. Can anyone clarify this?

Thanks Sanjeev

+3
source share
2 answers

Like this. On your computer, you have a block called (A) PIC. This unit receives data from some of your peripherals, such as the PS2 keyboard, and causes an interrupt on the processor. There are two APICs in a modern system. One of them is called primary, and the other is called subordinate, and each of them holds 8 rows of IRQ. When you press a key on the keyboard, APIC receives a signal on line 1 (IRQ 1), which then causes an interrupt to the CPU.

APIC , 1, 9 CPU (, -, , ), , . , 0x31, , ( IRQ + 0x30).

, 9, Double Fault . , , .

+2

: IRQ (Interrupt ReQuest) - , . IRQ1 9.

, 31h , , .

0

Source: https://habr.com/ru/post/1754964/


All Articles