[U-Boot] exit(-1) function in U-Boot

Hi all, 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.
Is there some alternative? I just want to break program execution, printf message on the screen and regain the prompt.
Salut, Drasko

Dear Drasko,
In message 5ec3d7930903130339t592e64a8o5ace302e06976ea@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
participants (2)
-
Drasko DRASKOVIC
-
Wolfgang Denk