From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Thu, 20 Oct 2011 17:30:41 +0200 Subject: [U-Boot] [PATCH 2/3] mpc85xx: Add a board-specific restart hook In-Reply-To: <510974E8-A0C8-4E81-A034-B52F2AED12D0@boeing.com> References: <1318981284-4357-1-git-send-email-Kyle.D.Moffett@boeing.com> <201110191755.20800.vapier@gentoo.org> <201110192015.59233.vapier@gentoo.org> <510974E8-A0C8-4E81-A034-B52F2AED12D0@boeing.com> Message-ID: <20111020153041.25D2415794DB@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear "Moffett, Kyle D", In message <510974E8-A0C8-4E81-A034-B52F2AED12D0@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.