linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* segmentation question
@ 2010-10-01 21:38 Sri Ram Vemulpali
  2010-10-02  9:42 ` Bond
  2010-10-02 10:06 ` Daniel Baluta
  0 siblings, 2 replies; 5+ messages in thread
From: Sri Ram Vemulpali @ 2010-10-01 21:38 UTC (permalink / raw)
  To: Kernel-newbies, Linux-rt-users

Hi All,

      I am developing segmentation for my kernel. In that process I
choose to divide whole memory in to fixed size segments. So a 4GB
memory can be divided in to 8192 segments. So I initialize segment
descriptors in to the GTD withs segments base address and limit. Here
base address are 0,0x10000,0x20000,..... and limit is 64kb always for
every segment. For a task if I choose a segment to assign, I will
place the index of that segment descriptor in to CS, DS. Now when
process generates address to put on address bus, then it will do
computation from logical address to linear address.
After processor picks logical address, it chooses segment descriptor
and adds this 32-bit logical address to segment base address to
generate linear address. Now my question is, if my segment size is
64kb, how is that 32-bit offset is added to segment base address,
which is not right. It should only consider 16-bit offset to add to
base to generate linear address. How can I tell to my processor to
choose only 16-bit offset. Does processor drives offset bit width
automatically based on limit defined in segment descriptor.

Any insight in to this will help me. please clarify my doubt. Waiting
for you reply.

Regards,
Sri.

-- 
Regards,
Sri.

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

end of thread, other threads:[~2010-10-02 16:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-01 21:38 segmentation question Sri Ram Vemulpali
2010-10-02  9:42 ` Bond
2010-10-02 10:06 ` Daniel Baluta
2010-10-02 10:15   ` Raz
2010-10-02 16:53     ` Sri Ram Vemulpali

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).