Command line arguments

Lars Munch lars at segv.dk
Thu Oct 14 12:08:06 UTC 2004


Hello Ed

Thanks for your reply.

On Thu, Oct 14, 2004 at 07:30:26AM -0400, Ed Sutter wrote:
> Lars,
> I beleive this is boot loader specific.  At the time of command
> line entry, the boot loader is still the active program, so it 
> must provide the ability to deal with arguments.  In MicroMonitor,
> this is very easy to do and pretty much independent of the CPU/RTOS.
> 
> Command line arguments established when the application starts up
> are stored in the monitor's environment, then through a monitor
> API call, they can be retrieved from anywhere in application
> space (assuming the application doesn't disallow access to the
> monitor's API because of MMU-based protection).
> 
> In most uMon-based applications, this API call is made prior to main()
> so that argc/argv are populated just like a normal program; however,
> this isn't a requirement.

Yes, I know of the monConnect and mon_getargv calls to uMon, but my
problem is not getting the arguments from the boot loader. My problem is
to get the arguments from the bootcard function into my task.

Thanks
Lars Munch




More information about the users mailing list