Page 1 of 1
Where to put IDT?
Posted: Thu Dec 19, 2002 12:00 am
by Darkman
Where in memory do I the IDT?
RE:Where to put IDT?
Posted: Fri Dec 20, 2002 12:00 am
by rexlunae
Anywhere you like. You need to use the lidt instruction to set the location and size.
RE:Where to put IDT?
Posted: Fri Dec 20, 2002 12:00 am
by Darkman
Ok I will rephrase the question. Where in memory is the best place to put the IDT?
RE:Where to put IDT?
Posted: Fri Dec 20, 2002 12:00 am
by jamethiel
Wherever is most convenient.
No, seriously. My OS puts the IDT wherever the heck the allocation pointer is when it comes time to create it.
RE:Where to put IDT?
Posted: Fri Dec 20, 2002 12:00 am
by rexlunae
In my os, it is an array declared in the standard fashion which I initialize at runtime. Then I use a pointer to that to set the IDTR.
RE:Where to put IDT?
Posted: Fri Dec 20, 2002 12:00 am
by Darkman
Oh ok. Thanks alot guys.