How I can set my own interrupt handler?
Thank you whoever you are.
Interrupt Handlers
RE:Interrupt Handlers
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.
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.