[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

In rtl22xx bsp,why .text in sdram in link cmd



invent-lwj wrote:
> 
> (3)int boot_card(int argc, char **argv, char **envp)
> 
> what's the three parameter means about? did the envp is from r2(in 
> start.S) pass to here?
> 

It is kinda based on the execve type call found in the SUS:

http://opengroup.org/onlinepubs/007908799/xsh/execve.html

It is a way for a boot monitor or what-ever to provide an initial
environment or command line options. If the boot monitor does not
provide such a thing then typically the BSP will not support it. If the
boot monitor does and you can set a command line or environment
variables the BSP can then load the application's environment or pass
the options to the application.

Regards
Chris