public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andrew May <acmay@acmay.homeip.net>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] bootm change for standalone images
Date: Wed, 28 Jul 2004 12:59:39 -0700	[thread overview]
Message-ID: <1091044779.17855.13.camel@mud> (raw)
In-Reply-To: <20040728085736.E5E0EC109F@atlas.denx.de>

On Wed, 2004-07-28 at 01:57, Wolfgang Denk wrote:
> In message <20040727223152.GA11596@acmay.homeip.net> you wrote:
> > 
> > So just change the function names and printf to make it obvious
> > it is a simple OS type. Also do a fall through case for both
> > RTEMS and GENERIC OS image types.
> 
> I don't think that this is a "generic" OS.

Do you not like the name. Are you concerned with belittling RTEMS?

> > Here is an incomplete patch of what I mean.
> 
> Frankly, I don't like it.

Any reason why or just a gut feeling?
I just wanted it to be small and simple. It seems like
a waste to do a whole new function that differs only in
the print and the args passed. Every other OS does a lot
more work.

Would you prefer something like this?
....
	case IH_TYPE_STANDALONE:
		if (iflag)
			enable_interrupts();

		/* load (and uncompress), but don't start if "autostart"
		 * is set to "no"
		 */
		if (((s = getenv("autostart")) != NULL) && (strcmp(s,"no") == 0)) {
			char buf[32];
			sprintf(buf, "%lX", len);
			setenv("filesize", buf);
			return 0;
		}
	case IH_TYPE_STANDALONE_DISABLE_IRQ:
		appl = (int (*)(int, char *[]))ntohl(hdr->ih_ep);
		(*appl)(argc-1, &argv[1]);
		return 0;

  reply	other threads:[~2004-07-28 19:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-27  1:21 [U-Boot-Users] bootm change for standalone images Andrew May
2004-07-27 22:05 ` Wolfgang Denk
2004-07-27 22:31   ` Andrew May
2004-07-28  8:57     ` Wolfgang Denk
2004-07-28 19:59       ` Andrew May [this message]
2004-07-28 21:22         ` Wolfgang Denk
2004-07-29 17:16           ` Andrew May
2004-07-29 17:29             ` Wolfgang Denk
2004-07-29 18:00               ` Andrew May

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=1091044779.17855.13.camel@mud \
    --to=acmay@acmay.homeip.net \
    --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