Re: [uClinux-dev] Stack pointer..

From: David McCullough (davidm@snapgear.com)
Date: Mon Aug 26 2002 - 06:31:47 EDT


Jivin Shankar Rajendran lays it down ...
> Hi,
> 
>  Can any of you please give me the details about how to setup the stack
> pointer.

Did you want to know how to set it up for the kernel
or for applications ?

For the kernel,  crt0.S or head.S depending on the platform sets
up the stack pointer.  It could even be done by the bootloader.

For applications the flat loader sets up the stack pointer.  You
do not have to do anything.  The flat loader allocates the stack
space and the "start_thread" macro/call takes care of the
arch dependant setup.  If you want to change the stack size
just run "flthdr -s new-size flat-binary".

Cheers,
Davidm

-- 
David McCullough:    Ph: +61 7 3435 2815  http://www.SnapGear.com
davidm@snapgear.com  Fx: +61 7 3891 3630  Custom Embedded Solutions + Security
This message resent by the uclinux-dev@uclinux.org list server http://www.uClinux.org/


This archive was generated by hypermail 2.1.4 : Thu Sep 19 2002 - 13:21:45 EDT