Command line arguments
Lars Munch
lars at segv.dk
Fri Oct 15 11:20:36 UTC 2004
On Fri, Oct 15, 2004 at 07:21:21AM +1000, Chris Johns wrote:
> Joel Sherrill <joel at OARcorp.com> wrote:
> >
> >If there is a generic way to get the arguments to a user "main",
> >it might be nice to distribute it with RTEMS.
> >
>
> I have code to do this but it is in my separate Coldfire BSP.
>
> If someone wishes to include it let me know and I will dig it out and
> clean it up. It creates argc/argv and uses main as the application entry
> point. That is:
>
> boot_card -> rtems_premain -> main
> *
>
> * rtems_premain is the Init task so rtems_premain and main is running as
> a task.
Oh, that sound nice. I would highly appreciate it if you would dig out
the code. If would be nice to a generic (boot loader independent) way
of doing this.
Best regards
Lars Munch
More information about the users
mailing list