From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sughosh Ganu Date: Thu, 12 Dec 2013 14:53:12 +0530 Subject: [U-Boot] [PATCH] netbsd:fix documentation typo. In-Reply-To: <1386584885-2279-1-git-send-email-k.jongenburger@vu.nl> References: <1386584885-2279-1-git-send-email-k.jongenburger@vu.nl> Message-ID: <20131212092122.GA2836@Hardy> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de hi Kees, On Mon Dec 09, 2013 at 11:28:05AM +0100, Kees Jongenburger wrote: > From: Kees Jongenburger > > The documentation suggested the arguments where passed over r3-r6 > while the code bellow simply does that over r0-r3. > > Cc: Kumar Gala > --- > common/cmd_bootm.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c > index ba73f57..084c0e9 100644 > --- a/common/cmd_bootm.c > +++ b/common/cmd_bootm.c > @@ -1531,10 +1531,10 @@ static int do_bootm_netbsd(int flag, int argc, char * const argv[], > > /* > * NetBSD Stage-2 Loader Parameters: > - * r3: ptr to board info data > - * r4: image address > - * r5: console device > - * r6: boot args string > + * r0: ptr to board info data > + * r1: image address > + * r3: console device > + * r3: boot args string Umm, is this not supposed to be processor agnostic -- different architectures would use different registers to pass these arguments. I would suggest changing it to something like arg[0-3] instead. -sughosh