Unix Programming - Linear address allocation

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > July 2005 > Linear address allocation





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Linear address allocation
Amrith

2005-07-29, 8:08 am

Hi all,


How the Kernel decides the allocation of the Linear address space for
process.


1. Is it based on the BASE field in the SEGMENT DESCRIPTOR. In that
case, How it is assume this linear address for the Base field.


2. Is the value in the BASE address is assumed from the machine where
the kernel is compiled.


Please clarify my doubts..


Thanks & Regards
Amrith
yahoo id: amrithac

Maxim Yegorushkin

2005-07-29, 8:08 am

Amrith wrote:
> Hi all,
>
>
> How the Kernel decides the allocation of the Linear address space for
> process.
>
>
> 1. Is it based on the BASE field in the SEGMENT DESCRIPTOR. In that
> case, How it is assume this linear address for the Base field.


<quite from Understanding the Linux kernel>
The 2.4 version of Linux uses segmentation only when required by the 80
x 86 architecture. In particular, all processes use the same logical
addresses, so the total number of segments to be defined is quite
limited, and it is possible to store all Segment Descriptors in the
Global Descriptor Table (GDT).
</quote>

> 2. Is the value in the BASE address is assumed from the machine where
> the kernel is compiled.


The value of the BASE for User and Kernel code and data segment
descriptors is always 0.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com