[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [linux-india-programmers] Re: [LI] struct task



On Wed, Dec 01, 1999 at 02:01:01PM +0530, sudheer@xxxxxxxxxxxxx wrote:
> > and look at the .data section. Or print the address of a global variable
> > in a C program and you'll know what I mean.
> 
>   Yes, for global variables the format is 0x8xxxxxxx, but Why?

You'll have to get upto speed on Linux memory management. It divides
the 2**32 address space into two ranges - (user, kernel) = (0-3GB, 3-4GB) 

So all kernel addresses are of the format 0xcxxxxxxx and among user
addresses, shared libs are normally mapped in at 0x4xxxxxxx and text 
and data are normally at 0x8xxxxxxx. This is just a convention.

NT divides (user, kernel) = (0-2GB, 2-4GB).

	-Arun

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.