On Tue, Mar 17, 2009 at 11:18 AM, Drasko DRASKOVIC < drasko.drasko...@gmail.com> wrote:
> Actually, I ment U-boot itself. When I said application, I was wrong. I > ment for example command, which is part of U-Boot. If I want to exit when > something is wrong within TFTP for example, I cannnot break execution and > regain U-Boot shell? (Otherwise, I have to go back to calling functions in > net.c, etc..., which is not what I want. I want to stop on the place error > happened.) > > BR, > Drasko > > > On Fri, Mar 13, 2009 at 2:49 PM, Wolfgang Denk <w...@denx.de> wrote: > >> Dear Drasko, >> >> In message <5ec3d7930903130339t592e64a8o5ace302e0697...@mail.gmail.com> >> you wrote: >> > >> > I am having hard time to find exit() function in U-Boot, so I can exit >> from >> > a application at any function when something goes wrong. >> >> U-Boot itself has no exit, obviously. >> >> But you mention "application", so I guess you are referring to stand- >> alone applications; these terminate when you return from the top >> level function. How you arrange for that is up to you. setjmp / long- >> jmp are usually trivial to implement / use. >> >> 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: w...@denx.de >> No one can guarantee the actions of another. >> -- Spock, "Day of the Dove", stardate unknown >> > >
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot