Up vote 2 down vote favorite share g+ share fb share tw.
I want to create an entry in idt(interrupt descriptor table) to call one of my kernel's function when keyboard interrupt IRQ1 is generated. As will read same scan code if I repeatedly read from port 0x60 again and again, I thought setting up an entry in idt so that when a key is pressed on keyboard it would call one of my kernel's function which will later process these scan codes. So how shall I do this(most preferably in C)?
C keyboard operating-system interrupt-handling keyboardinterrupt link|improve this question asked Feb 12 at 5:06Manu Hegde696 70% accept rate.
– Manu Hegde Feb 15 at 15:25 By default, it is interrupt number 9, which would be the 10th entry. If you are working in protected mode, that interrupt is reserved for exceptions, so you should move it (if you aren't in protected mode, you should be using the IVT, not the IDT). See this page on the Programmable Interrupt Controller for information on how to do this.
– ughoavgfhw Feb 15 at 16:42 I am working in protected mode. I am trying to build 32bit os. I don't want to work in real mode – Manu Hegde Feb 16 at 10:27.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.