This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
Re: gloss patch for argc/argv retrieval
On Fri, 2002-01-25 at 11:37, Frank Ch. Eigler wrote:
> Hi -
>
> On Fri, Jan 25, 2002 at 02:21:46PM +1100, Ben Elliston wrote:
> > It is currently possible for a SID configuration to set the gloss
> > "command-line" attribute for process emulation. However I noted that
> > the gloss component doesn't do much with it -- except store it.
> >
> > The following patch adds a number of new syscalls to enable software
> > running on target CPUs to request the argc and argv variables passed
> > in from the outside world. [...]
> > [...]
>
> I suspect a single system call, like ARM ANGEL's "get entire command
> line as a string" would be sufficient. Are you planning to add
> support for this system call to some libgloss ports also?
>
If you are, you should look at the i386 gloss port, which has support
for a __get_program_arguments syscall, number 184. The implementation is
in devo/libstub/generic-stub.c in the __get_program_args function.
Tom
--
Thomas Fitzsimmons
Red Hat Canada Limited e-mail: fitzsim@redhat.com
2323 Yonge Street, Suite 300
Toronto, ON M4P2C9