All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Wozniak <awozniak@mc.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] return() from a u-boot application
Date: Thu, 09 Jun 2005 08:51:26 -0400	[thread overview]
Message-ID: <42A83B4E.90900@mc.com> (raw)
In-Reply-To: <20050609064934.24C23C1512@atlas.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
> 

      reply	other threads:[~2005-06-09 12:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-09  2:30 [U-Boot-Users] return() from a u-boot application Andrew Wozniak
2005-06-09  6:49 ` Wolfgang Denk
2005-06-09 12:51   ` Andrew Wozniak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42A83B4E.90900@mc.com \
    --to=awozniak@mc.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.