Interrupts: how to begin?

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
Poseidon

Interrupts: how to begin?

Post by Poseidon »

I'm only a few days working now on a kernel, and I'm gonna do the interrupts now, but I haven't really a clue how to begin. I read a few webpages, but can I just do this for example in assemble code?:

Code: Select all

isr60: // keyboard interrupts
User avatar
gaf
Member
Member
Posts: 349
Joined: Thu Oct 21, 2004 11:00 pm
Location: Munich, Germany

Re:Interrupts: how to begin?

Post by gaf »

Hi
I hope you're already in pmode ?

If so - here are some tutorials that may help you:
http://www.osdever.net/tutorials/interr ... ?the_id=39
http://www.osdever.net/tutorials/pic.php?the_id=38

1. Reprogram the PIC
2. Set-up an idt
3. Write your interrupt handlers

regards,
gaf
User avatar
Neo
Member
Member
Posts: 842
Joined: Wed Oct 18, 2006 9:01 am

Re:Interrupts: how to begin?

Post by Neo »

osdever.net used to have good docs on this thing. Just check if they still do. :)
Only Human
Post Reply