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?
I have a problem about IDT in head.s
-
- Member
- Posts: 70
- Joined: Fri Nov 19, 2010 6:54 pm
Re: I have a problem about IDT in head.s
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.
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.