flat assembler
Message board for the users of flat assembler.

Index > OS Construction > GDT, LDT , IDT

Author
Thread Post new topic Reply to topic
maslan



Joined: 08 Sep 2003
Posts: 54
maslan
hi guys
i know how to load gdt but i don't know how to do the a ldt and how the the ldt require space in gdt.
i know how to go to protected mode
so can any 1 send me a sample code that can be loaded by grub and little description about ldt ad idt in os. and what is the minumum GDT , IDT , LDT that the os should create.
thanx

_________________
Maslan
I'm searching for perfection so, even if u need portability u 've to use Assembly
---
http://www.maslanlab.org
---
http://libosdk.berlios.de
http://maslanedit.sf.net
http://maslancms.sf.net
Post 15 Jun 2005, 16:13
View user's profile Send private message Reply with quote
maslan



Joined: 08 Sep 2003
Posts: 54
maslan
ok i'm always ignored

but will make it little clear and easier
can i set an idt without creating a system descriptor in gdt, because i've a code segment with 0 base in the gdt.
can i also set it without having a TSS ?
please i need a sample function to do so .
Post 21 Jun 2005, 11:44
View user's profile Send private message Reply with quote
Octavio



Joined: 21 Jun 2003
Posts: 366
Location: Spain
Octavio
maslan wrote:
ok i'm always ignored

wellcome to the assembler world Laughing
Quote:

but will make it little clear and easier
can i set an idt without creating a system descriptor in gdt
yes, you can set the idt before the gdt ,tss is not needed if you donĀ“t use it. But before activating interrupts you need to set up the gdt
with an apropiate descriptor for the interrupts, on my OS i use the same
descriptors for interrupts and system code.
Post 21 Jun 2005, 13:39
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.