OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 18, 2024 9:29 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: LDT... What and Why?
PostPosted: Wed Apr 04, 2001 11:00 pm 
I was just wondering how exactly you use an LDT.
I know that you define it the same way as a GDT.
Use LLDT to load it. But how do we access the
entries in it?

With a GDT we use something like
mov ax,SELECTOR_EQUATE
mov segmentregister,ax

But how do I do it with an LDT?


Top
  
 
 Post subject: RE:LDT... What and Why?
PostPosted: Thu Apr 05, 2001 11:00 pm 
>With a GDT we use something like
>mov ax,SELECTOR_EQUATE
>mov segmentregister,ax
>
>But how do I do it with an LDT?

just the same way, but the selector must have bit 2 set to 1.

this is the description of segment selectors:
bit 0-1 requested previlege level
bit 2 table indicator (0=gdt, 1=ldt)
bit 3-15 index into descriptor table

e.g.
0000000000001000b (=0x08) second gdt entry
0000000000001100b (=0x0C) second ldt entry

hope this helps

bye

Philippo


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 115 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group