From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27911 invoked by alias); 25 Jan 2002 18:06:57 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 27866 invoked from network); 25 Jan 2002 18:06:54 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 25 Jan 2002 18:06:54 -0000 Received: from toggle.toronto.redhat.com (toggle.toronto.redhat.com [172.16.14.248]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id KAA02737; Fri, 25 Jan 2002 10:06:48 -0800 (PST) Subject: Re: gloss patch for argc/argv retrieval From: Thomas Fitzsimmons To: Ben Elliston Cc: sid@sources.redhat.com In-Reply-To: <20020125113743.C23105@redhat.com> References: <15440.53066.47081.565065@scooby.brisbane.redhat.com> <20020125113743.C23105@redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: Fri, 25 Jan 2002 10:06:00 -0000 Message-Id: <1011982009.1278.58.camel@toggle> Mime-Version: 1.0 X-SW-Source: 2002-q1/txt/msg00011.txt.bz2 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