From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Wozniak Date: Wed, 08 Jun 2005 22:30:32 -0400 Subject: [U-Boot-Users] return() from a u-boot application Message-ID: <42A7A9C8.2040106@mc.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, We have a u-boot "application" (based on hello_world example) which implements system specific boot control functions. Normally, a return() call from main() will return control back to the u-boot command line. We have several error handling subroutines which report and log errors through a proprietary PCI based interface. Would anyone know how to directly return back to the u-boot command line from within a subroutine which was called from main()? Maybe something like an exit() call. I want to avoid having to return error codes from multiple level of function calls back to main - even though it might not be good coding style. I did try an exit() call but it was undefined. If I export it from U-Boot, will it work? i.e return control back to u-boot. Thanks for any suggestions.