From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Wozniak Date: Thu, 09 Jun 2005 08:51:26 -0400 Subject: [U-Boot-Users] return() from a u-boot application In-Reply-To: <20050609064934.24C23C1512@atlas.denx.de> References: <20050609064934.24C23C1512@atlas.denx.de> Message-ID: <42A83B4E.90900@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 Thank you for the setjmp/longjmp suggestion. That should do the job. -andrew Wolfgang Denk wrote: > In message <42A7A9C8.2040106@mc.com> you wrote: > >>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 > > > There is no way to do this rigth now. > > >>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. > > > No, it will not work. > > You probably want to implement something like setjmp() and longjmp(). > > Best regards, > > Wolfgang Denk >