Interrupt Handlers

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Nima

Interrupt Handlers

Post by Nima »

How I can set my own interrupt handler?
Thank you whoever you are.
prasikumbhare

RE:Interrupt Handlers

Post by prasikumbhare »

u need to setup idt first.. well if r writing a kernel ,u may like to set it up in C. for handler routines in C, u first write asm wrapper routines that in turn call C routines. the asm routine should end with 'iret' instructions.

for irq handling u also need to send End of interrupt signal at PIC port 0x20 as below :
outportb(0x20,0x20);

Go through to some OS source codes on this site... Alexfru OS seems to be good one for study. This is what I studied first.
Also check out my post ... 'setting up IF flag restarts' on this message board for demo code. At present I am also facing some problems about int handling.
Post Reply