bluemoon wrote:
Quote:
modify existing entries in the IDT (on already exists thanks to aeBIOS)
You usually can't use the BIOS and the real-mode IDT under protected mode. Setting up your own IDT is a one of thing you'd do after enter to protected mode.
If you're unsure how to manipulate IDT, you should take a look on babystep examples on the wiki;
and it sounds too early to actually implement fancy things (ie. loadable module) before you have an IDT work.
Furthermore, it's not recommended to have loadable module to directly be an INT handler,
since one module could be interested on multiple INT, or multiple drivers may share the same INT.
your kernel could have managed it and allow chains, etc.
Sorry everyone for the confusion. My expression is terrible.
I looked at the info and I now have a grasp of manipulating the IDT. This issue now is this:
When I write code in assembly, I normally have to specify where it will be loaded (using 'org').
But with a dynamic loader, it could go in many locations.
So how do you deal with this???
Thankyou in advance.