Subject: Re: GC-4.12
To: None <port-arm32@NetBSD.ORG>
From: Alex Hayward <alex@hayward.u-net.com>
List: port-arm32
Date: 04/15/1998 11:04:34
On Sun, 12 Apr 1998, David wrote:
> 1) How to find the beginning and end of the data segment when a program is
> running?  There are macros in <sys/exec_aout.h>, but they don't seem to be
> usable at run-time.

You could perhaps try end(3) and sbrk(2).

> 2) How to find the bottom end of the stack (i.e. the highest address in
> memory)?  (I'm assuming here that stacks grow downwards under RBSD?)  I
> currently have a guess value of this as being 0xefbfe00. Is it fixed? Is
> this correct?  I've found a reference to a USRSTACK in <sys/exec.h>, but
> can't find where it's defined.

/usr/include/machine/vm_param.h