flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > LDT |
Author |
|
BOTOKILLER 27 Jul 2011, 12:08
Hi everyone!
Yeah, I figured out how paging interacts with segments - LDT Where can I find LDT tutorial??? |
|||
27 Jul 2011, 12:08 |
|
DJ Mauretto 27 Jul 2011, 12:17
Always Intel Manuals
_________________ Nil Volentibus Arduum |
|||
27 Jul 2011, 12:17 |
|
BOTOKILLER 27 Jul 2011, 12:25
Which one???
|
|||
27 Jul 2011, 12:25 |
|
f2 27 Jul 2011, 12:31
BOTOKILLER wrote: Which one??? Intel Architecture Software Developer’s Manual Volume 3: System Programming Guide Hope you will search by yourself next time... |
|||
27 Jul 2011, 12:31 |
|
BOTOKILLER 27 Jul 2011, 13:12
edfed wrote:
I read them, In fact they are opened in a few tabs of chrome which I never close... |
|||
27 Jul 2011, 13:12 |
|
BOTOKILLER 27 Jul 2011, 16:11
I cant find where LDT entry format is mentioned...
|
|||
27 Jul 2011, 16:11 |
|
f2 27 Jul 2011, 17:02
it's probably wiritten somewhere in Intel manuals (but I don't know where, I'm not interested about implementing such obsolete things like LDTs).
I have searched the Internet and I found an interesting page about segmentation on x86: http://book.opensourceproject.org.cn/kernel/kernel3rd/opensource/0596005652/understandlk-chp-2-sect-2.html |
|||
27 Jul 2011, 17:02 |
|
BOTOKILLER 28 Jul 2011, 11:53
f2 wrote: it's probably wiritten somewhere in Intel manuals (but I don't know where, I'm not interested about implementing such obsolete things like LDTs). but LDT must somehow point to Page tables... |
|||
28 Jul 2011, 11:53 |
|
qandrew 28 Jul 2011, 12:23
BOTOKILLER wrote:
The LDT isn't related to Paging! Why? It just isn't. As Wikipedia mentions, "On x86 processors not having paging features, like the Intel 80286, the LDT is essential to implementing separate address spaces for multiple processes.". You should choose what you want to use: it is either Paging or LDT. Not both at the same time. |
|||
28 Jul 2011, 12:23 |
|
BOTOKILLER 28 Jul 2011, 12:37
Then what do I put into CS, DS, SS, etc when paging enabled???
|
|||
28 Jul 2011, 12:37 |
|
revolution 28 Jul 2011, 12:44
LDT/GDT defines segments and thus affects CS, DS, etc.
Paging defines access to memory pages and is independent of segments. Most modern OSes effectively disable segmentation by defining all segments to be 4GB (or run in 64 bit mode where there are no segments of consequence (except that pesky GS thing)). |
|||
28 Jul 2011, 12:44 |
|
BOTOKILLER 28 Jul 2011, 12:59
So, I just have to put all segments to point to whole address space???
That simple Thanks guys!!! Last edited by BOTOKILLER on 28 Jul 2011, 13:01; edited 1 time in total |
|||
28 Jul 2011, 12:59 |
|
f2 28 Jul 2011, 13:00
Hmm... Well.
I fully agree that you ask lot of questions about something you can't understand. But mostly, you can easily answer these questions: - by reading carefully the Intel manuals, - or by following all existing tutorials about OS development. - and, of course, if you have a question, search on theOSDev Wiki, the FASM board, or on Google. Post here ONLY if you can't find an answer that question. |
|||
28 Jul 2011, 13:00 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.