[U-Boot-Users] return() from a u-boot application

Wolfgang Denk wd at denx.de
Thu Jun 9 08:49:29 CEST 2005

In message <42A7A9C8.2040106 at 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

Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
God grant me the senility to accept the things I cannot  change,  The
frustration  to  try to change things I cannot affect, and the wisdom
to tell the difference.

More information about the U-Boot mailing list