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

Andrew Wozniak awozniak at mc.com
Thu Jun 9 14:51:26 CEST 2005


Thank you for the setjmp/longjmp suggestion. That should do the job.

-andrew

Wolfgang Denk wrote:
> 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
> 




More information about the U-Boot mailing list