public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] bootm: Add sub commands
Date: Mon, 22 Sep 2008 23:09:15 +0200	[thread overview]
Message-ID: <20080922210915.D0471248EE@gemini.denx.de> (raw)
In-Reply-To: <CF82B92D-9821-495A-AA5A-192B83C8619E@kernel.crashing.org>

Dear Kumar Gala,

In message <CF82B92D-9821-495A-AA5A-192B83C8619E@kernel.crashing.org> you wrote:
>
> >> +	if (!images.valid) {
> >> +		printf("Need to call %s start first\n", argv[0]);
> >> +		return 1;
> >> +	}
> >
> > We should probably set up a small state machine.
> 
> A small state machine for what?

Well, we have states - here you code that a certain operation is  not
allowed   unless   something  else  has  been  done  before.  SImilar
dependencies may follow - after uncompressing and loading the  kernel
image  it  might  for  example  be  not  allowed  any more to turn on
interrupts, etc. Of course we can  handle  all  this  in  a  maze  of
conditional statements. Or we could use a small state machine.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Conscious is when you are aware of something, and conscience is  when
you wish you weren't.

  reply	other threads:[~2008-09-22 21:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-17 22:00 [U-Boot] [RFC] bootm: Add sub commands Kumar Gala
2008-09-17 23:57 ` Jerry Van Baren
2008-09-18 16:27   ` Kumar Gala
2008-09-18  6:54 ` Wolfgang Denk
2008-09-18 11:25   ` Jerry Van Baren
2008-09-18 16:32   ` Kumar Gala
2008-09-22 21:06     ` Wolfgang Denk
2008-09-18 20:17   ` Kumar Gala
2008-09-22 21:09     ` Wolfgang Denk [this message]
2008-09-22 23:32       ` Kumar Gala
2008-09-22 23:49         ` 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=20080922210915.D0471248EE@gemini.denx.de \
    --to=wd@denx.de \
    --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