From: Wolfgang Denk Date: Sun, 25 Sep 2011 21:25:15 +0200 Subject: [U-Boot] [RFC PATCH 04/20] sandbox: Add cpu files In-Reply-To: References: <1316278139-28635-2-git-send-email-sjg@chromium.org> <1316278139-28635-5-git-send-email-sjg@chromium.org> <201109171958.44773.vapier@gentoo.org> Message-ID: <20110925192515.B50861407980@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 Simon Glass, In message you wrote: > > > do_reset() is not supposed to return > > I have adjusted the function meaning (which luckily for me was not > defined) so that it can return -1 on failure. This makes my code > correct :-) > > I think it is reasonable to provide a reset function which might not > be able to do its job. That is the current state of sandbox. No, I don't want to change the current definition of reset(). And "not able to do the job" is something different than "unimplemented". Why cannot we do a real reset here? Re-exec'in the running binary or performing a longjmp() to the start might be ideas how to implement this. 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 "The value of marriage is not that adults produce children, but that children produce adults." - Peter De Vries