Segmentation 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
anon19287473
Member
Member
Posts: 97
Joined: Thu Mar 15, 2007 2:27 pm

Segmentation memory

Post by anon19287473 »

How much memory can you access with segmentation (32-bit) and

how much w/ paging?


From only this perseptive (ignoring other pro's and con's), would segmentation be a good choice for a small OS I'm writing (mostly for practice, to "learn the ropes")?

Can you have memory protection with paging?

How can I detect the amount of RAM on a system, and adjust the GDT (if I need too)?
User avatar
muisei
Member
Member
Posts: 79
Joined: Sat Sep 23, 2006 2:10 pm
Location: Bulgaria
Contact:

Post by muisei »

With segmentation in protected mode you canaccess max 4GB.
With paging you can access max 64GB
The page can give you very robust protection mechanismPage and segment protection can be combined.

Read the "Intel Architecture Software Developer's Manual Volume 3:System Programming".Chapters 3 and 4 will answer your questions completely.
Last edited by muisei on Fri Mar 30, 2007 2:04 pm, edited 1 time in total.
anon19287473
Member
Member
Posts: 97
Joined: Thu Mar 15, 2007 2:27 pm

4GB

Post by anon19287473 »

I read 4GB per segment, is that wrong?
frank
Member
Member
Posts: 729
Joined: Sat Dec 30, 2006 2:31 pm
Location: East Coast, USA

Post by frank »

I read 4GB per segment, is that wrong?
No an X86 processor can only access up to 4GB at a time though one segment descriptor.
Post Reply