Where to put IDT?

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
Darkman

Where to put IDT?

Post by Darkman »

Where in memory do I the IDT?
rexlunae

RE:Where to put IDT?

Post by rexlunae »

Anywhere you like.  You need to use the lidt instruction to set the location and size.
Darkman

RE:Where to put IDT?

Post by Darkman »

Ok I will rephrase the question. Where in memory is the best place to put the IDT? :D
jamethiel

RE:Where to put IDT?

Post 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.
rexlunae

RE:Where to put IDT?

Post 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.
Darkman

RE:Where to put IDT?

Post by Darkman »

Oh ok. Thanks alot guys. :D
Post Reply