This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ECOS] arguments to main


On Wed, 2002-07-31 at 11:41, Andrew Lunn wrote:
> > Additionally, these variables should be exported via some HAL .h file,
> > possibly <cyg/hal/hal.h> or maybe <cyg/hal/hal_arch.h>.
> > 
> > Finally, there should be appropriate ChangeLog entries.
> > 
> 
> I could not work out how to get access to the environment. I can see
> it on the stack, but i cannot find an obvious pointer to it anywhere.
> Does anyone know of any documentation of how the linux kernel sets up
> the stack before handing it over to the new process?

IIRC, you have to compute it.  You could look at the GLIBC code (crt0.s)
to figure it out.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]