Page 1 of 1

I have a problem about IDT in head.s

Posted: Wed Feb 27, 2013 8:50 pm
by leetow2003
I read the file head.s,I find we can write
interrupt routine in protected-mode by ourself,even if
hardware interrupt,such as 08h-10h,so I have a
problem,how to respond hardware interrupt,look
like clock,keyboard,etc?
Where are these interrupt routine?

Re: I have a problem about IDT in head.s

Posted: Thu Feb 28, 2013 1:27 am
by iansjack
Well, that's part of the stuff that you have to code, isn't it? The point about writing your own OS is you write your own OS. What do you think a clock interrupt should do? What about a keyboard interrupt? You're probably going to read up on how the keyboard functions before you can do that. These are fairly simple compared to the more esoteric devices such as network cards or USB devices.

If you really have no idea, you can find the source code to many OSs, simple and complicated, on the web - many are linked to from the Wiki. Study them, read a few books, and have fun writing your OS rather than just typing in someone else's tutorial.