Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Where is the startup_stack label in start.S: (2 Items)
   
Where is the startup_stack label in start.S  
Hi all,
    I m reading  neutrino code from the SVN with source insight 3.5. At the beginning of _start.S in ker/arm:

  .long	bootstrap
_cstart_:
_start:
	/*
	 * Switch to initial stack
	 */
	ldr		sp, Lstartup_stack
	add		sp, sp, #STARTUP_STACK_SIZE- STACK_INITIAL_CALL_CONVENTION_USAGE

	/*
	 * _main never returns
	 */
	b		_main

Lstartup_stack:	.word	startup_stack


//////////////////////////////////////////////////////////////

(1)  But I can't find where the definition of startup_stack label is?

(2)  Usually what's kinds of tools used to track the source code?
 
thanks!

Re: Where is the startup_stack label in start.S  
The definition is provided by kexterns.c - it includes externs.h providing the
KERDEFN so that all the EXT variable declarations generate variable definitions.

	Sunil.

josh zhao wrote:
> Hi all,
>     I m reading  neutrino code from the SVN with source insight 3.5. At the beginning of _start.S in ker/arm:
> 
>   .long	bootstrap
> _cstart_:
> _start:
> 	/*
> 	 * Switch to initial stack
> 	 */
> 	ldr		sp, Lstartup_stack
> 	add		sp, sp, #STARTUP_STACK_SIZE- STACK_INITIAL_CALL_CONVENTION_USAGE
> 
> 	/*
> 	 * _main never returns
> 	 */
> 	b		_main
> 
> Lstartup_stack:	.word	startup_stack
> 
> 
> //////////////////////////////////////////////////////////////
> 
> (1)  But I can't find where the definition of startup_stack label is?
> 
> (2)  Usually what's kinds of tools used to track the source code?
>  
> thanks!
> 
> 
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post29861
>