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: Tue, 23 Sep 2008 01:49:17 +0200	[thread overview]
Message-ID: <20080922234917.899C9248EE@gemini.denx.de> (raw)
In-Reply-To: <460D947F-9265-409E-A2E7-F079C52542CF@kernel.crashing.org>

Dear Kumar,

in message <460D947F-9265-409E-A2E7-F079C52542CF@kernel.crashing.org> you wrote:
> 
> > 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.
> 
> So I'm not sure I completely understand what this state machine would  
> look like that you are thinking about.

It would describe legal state changes - each sub-command would only be
allowed in a certain set of states, and if run cause a transition into
another state.

> I get the issue, just not seeing the implementation you are thinking  
> about.

He, implementation. The details are left to the reader :-)

Sorry, I'm not even thinking about any actual code yet.

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
"We don't care.  We don't have to.  We're the Phone Company."

      reply	other threads:[~2008-09-22 23:49 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
2008-09-22 23:32       ` Kumar Gala
2008-09-22 23:49         ` Wolfgang Denk [this message]

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=20080922234917.899C9248EE@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