Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: dragisha@frodo.ho.com <dragisha@frodo.ho.com>
Subject: Re: first readable address
Date: 15 Jan 1998 19:11:24 -0000	[thread overview]
Message-ID: <3e4e26836f0bf856d79db33640304964.axp-list@archive.invalid> (raw)

rth@dot.cygnus.com (Richard Henderson) wrote:
: On Wed, Jan 14, 1998 at 03:33:29AM +0100, Dragisa Duric wrote:
: >   What is <insert subject here> on Linux/Alpha? :) Is that CPU or OS
: > dependent? Is it 0x400000?

: By this what do you mean?  The start of the data segment?
: Yes, it is both cpu and os dependant.  On Linux/Alpha:

  3:33 AM question :). Answer was in one of source files, ie jsut enough of
answer. Zero will do for the moment.

:   char __data_start[];

  Hmm, this is C library variable, and I expect some constant. 

  This First_readable_address have something with NIL pointer checking. IE,
it is lowest possible valid pointer for process address space. Well, after I
slept few hours, I remembered that old "mappings" perl script from Jeremy
Fitzhardinge, and here is result of running it on init process (frodo is
Linux/Intel and alpha is Linux/Alpha)

frodo:dragisha/p2: ~# mappings 1
Rebuilding /tmp/prmap_db
 8048000     5000 r-xp        0 /sbin/init
 804d000     1000 rw-p     4000 /sbin/init
 804e000     1000 rwxp        0 
40000000     5000 rwxp        0 /lib/ld-linux.so.1.7.14
40005000     1000 rw-p     4000 /lib/ld-linux.so.1.7.14
40006000     1000 rw-p        0 
4000b000    93000 r-xp        0 /lib/libc.so.5.3.12
4009e000     6000 rw-p    92000 /lib/libc.so.5.3.12
400a4000    32000 rw-p        0 
bfffd000     3000 rwxp ffffe000 

alpha:dragisha/p3: ~# mappings 1   
1fffe000     2000 rwxp        0 
20000000    42000 r-xp        0 /sbin/init
20140000     6000 rw-p    40000 /sbin/init
20146000     6000 rwxp        0 

  It looks like every proces has same lowest address in this output. Do I
translate this correctly to "valid pointers are not less than 0x1fffe000 on
Linux/Alpha and not less than 0x8048000 on Linux/Intel"?

: r~

  dragisha

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1998-01-15 19:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-15 19:11 dragisha [this message]
     [not found] <Pine.LNX.3.95.980114032755.29479A-100000@frodo.ho.com>
1998-01-14 21:21 ` first readable address Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
1998-01-14  2:33 Dragisa Duric
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox