IDT, GDT, LDT and other about the memory

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
Unexpected

IDT, GDT, LDT and other about the memory

Post by Unexpected »

Hi,
Can anyone help or give me a link about IDT, GDT, LDT and other....
I wan't understand whats that and how it works...
And how use this...

Please help.. Thanx you!
Elfredo

Re:IDT, GDT, LDT and other about the memory

Post by Elfredo »

Hi,

there is a tutorial along with some source code about Protected Mode on this site. But for an in-depth explanation i would recommend the intel docs (especially intel 386 programmers reference volume 3), also avaible on the site.

http://my.execpc.com/CE/AC/geezer/os/
K.J.

Re:IDT, GDT, LDT and other about the memory

Post by K.J. »

From http://osdev.neopages.net/tutorials/gettingstarted.php:

Q: What is a GDT?

A: A gdt is a table containing selectors. Basically it provides a starting address to address all selectors.

Q: What is a selector?

A: A selector(sometimes also called a descriptor) is a definition of a segment. It contains a description of basic segment attributes, like the segment base (it's starting address) and the segments limit (it's length). Each selector is 64 bits long. More about them in the description of a GDT and LDT.

K.J.
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:IDT, GDT, LDT and other about the memory

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:28 pm, edited 1 time in total.
jrfritz

Re:IDT, GDT, LDT and other about the memory

Post by jrfritz »

Local Descriptor Table.

It's for hardware multitasking...right?
K.J.

Re:IDT, GDT, LDT and other about the memory

Post by K.J. »

It's for hardware multitasking...right?
No, the LDT is so each process/thread can have it's own 'mini' GDT' sorta. It works with software or hardware multitasking.

K.J.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:IDT, GDT, LDT and other about the memory

Post by Pype.Clicker »

Tom wrote: It's for hardware multitasking...right?
somehow, it is ... As each TSS can be given a personnal LDT, you can enforce more protection within the same address space if you give separated TSS separated LDTs. You can even use it in a software or hybrid multitasking if you have used segments or call/task gates somewhere and don't want every process to get the same priviledge access ...
Post Reply