From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Add call command on PPC
Date: Fri, 15 Feb 2008 00:54:45 -0500 [thread overview]
Message-ID: <200802150054.46595.vapier@gentoo.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0802142341250.31987@blarg.am.freescale.net>
On Friday 15 February 2008, Kumar Gala wrote:
> --- /dev/null
> +++ b/lib_ppc/cmd_call.c
there's nothing ppc specific about this
> + if ((argc < 2) || (argc > 10)) {
> ...
> +U_BOOT_CMD(
> + call, CFG_MAXARGS, 1, do_call,
considering the u-boot infrastructure for commands will do the max checking
for you, there's no need to check the upper bound of argc. it's also out of
sync: in one place you have a random "10" but in another you
have "CFG_MAXARGS".
> + (*img)(r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7]);
> +
> + /* may not return */
> +
> + return 0;
why not ? you might as well not arbitrarily limit things and have the
prototype return an int and have it return that instead of "0":
return (*img)(r[0], r[1], r[2], r[3], r[4], r[5], r[6], r[7]);
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20080215/6ceb1be8/attachment.pgp
next prev parent reply other threads:[~2008-02-15 5:54 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-13 23:50 [U-Boot-Users] [RFC] raw go command Kumar Gala
2008-02-14 0:40 ` Wolfgang Denk
2008-02-14 0:57 ` Kumar Gala
2008-02-14 8:12 ` Haavard Skinnemoen
2008-02-14 14:24 ` Kumar Gala
2008-02-15 5:42 ` [U-Boot-Users] [PATCH] Add call command on PPC Kumar Gala
2008-02-15 5:54 ` Mike Frysinger [this message]
2008-02-15 6:00 ` Kumar Gala
2008-02-15 6:02 ` [U-Boot-Users] [PATCH v2] " Kumar Gala
2008-02-15 8:41 ` Wolfgang Denk
2008-02-16 8:03 ` Mike Frysinger
2008-02-15 6:32 ` [U-Boot-Users] [PATCH] " Mike Frysinger
2008-02-15 6:40 ` Kumar Gala
2008-02-15 7:08 ` Mike Frysinger
2008-02-15 7:21 ` Haavard Skinnemoen
2008-02-15 7:29 ` Mike Frysinger
2008-02-15 8:16 ` Kumar Gala
2008-02-15 8:56 ` Haavard Skinnemoen
2008-02-15 9:26 ` Mike Frysinger
2008-02-15 8:14 ` Kumar Gala
2008-02-15 8:43 ` Wolfgang Denk
2008-02-15 8:30 ` Wolfgang Denk
2008-02-16 8:10 ` Mike Frysinger
2008-02-15 8:42 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200802150054.46595.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox