From: Andrew Wozniak <awozniak@mc.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] return() from a u-boot application
Date: Wed, 08 Jun 2005 22:30:32 -0400 [thread overview]
Message-ID: <42A7A9C8.2040106@mc.com> (raw)
Hi,
We have a u-boot "application" (based on hello_world example) which
implements system specific boot control functions. Normally, a return()
call from main() will return control back to the u-boot command line. We
have several error handling subroutines which report and log errors
through a proprietary PCI based interface.
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
like an exit() call. I want to avoid having to return error codes from
multiple level of function calls back to main - even though it might not
be good coding style.
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.
Thanks for any suggestions.
next reply other threads:[~2005-06-09 2:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-09 2:30 Andrew Wozniak [this message]
2005-06-09 6:49 ` [U-Boot-Users] return() from a u-boot application Wolfgang Denk
2005-06-09 12:51 ` Andrew Wozniak
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=42A7A9C8.2040106@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.