linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regarding GDT
@ 2010-09-29 17:28 Sri Ram Vemulpali
  2010-09-30  8:15 ` Pei Lin
  0 siblings, 1 reply; 2+ messages in thread
From: Sri Ram Vemulpali @ 2010-09-29 17:28 UTC (permalink / raw)
  To: Kernel-newbies, Linux-rt-users

Hi All,

      I have a doubt regarding implementation of segmentation in OS.

      Since GDT is used to implement the segmentation, in that table
you add all segments descriptors dividing the linear address space.
      In a flat model you assign for every descriptor the base as 0x0
and limit as 4GB. This way every DS,CS sees the complete 4GB memory.
      But how is the segment protection implemented. I mean if
segments are not divided with different base address and limit
preventing
      overlapping, there is a possibility of stepping in to other
segment. So, why is the flat model is implemented. Also, If I strictly
implement
      segmentation without paging, then I can have only 8192 segments
of size 64kb for whole 4GB address space. Then I have all the segment
      descriptors in the GDT. Now if some task uses all its complete
segment size, and needs some more space, then is it possible to assign
      another DS segment. If so, how is that accomplished, since we
need to load in DS new index of segment descriptor and keep track of
all
      indexes in to GDT.

      Can anyone explain how above mentioned things can be achieved.
-- 
Regards,
Sri.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-30  8:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-29 17:28 Regarding GDT Sri Ram Vemulpali
2010-09-30  8:15 ` Pei Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).