[U-Boot] [PATCH 2/3] mpc85xx: Add a board-specific restart hook

Wolfgang Denk wd at denx.de
Thu Oct 20 17:30:41 CEST 2011


Dear "Moffett, Kyle D",

In message <510974E8-A0C8-4E81-A034-B52F2AED12D0 at boeing.com> you wrote:
>
> > so why can't you have your do_reset() board hook negotiate with the other CPU 
> > to reset the system ?
>
> That's what I originally implemented.  The problem is the negotiation can take
> an unbounded amount of time to execute, so if it's run from the command line
> then it needs to be interruptible (EG: with Ctrl-C), which means it needs to
> be able to return an error.

Why would it need to be interruptable?  When you type "reset", then
you are gone.  You cannot interrupt that command any more.

If it takes a long time like in your case, so you might print a
message "Please stand by / have a cup of coffee while resetting" or
so...

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
"I think they're going to take all this money that we  spend  now  on
war and death --"                   "And make them spend it on life."
	-- Edith Keeler and Kirk, "The City on the Edge of Forever",
	   stardate unknown.


More information about the U-Boot mailing list