public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] Giving control to standalone app.
Date: Sun, 6 Jul 2014 15:08:00 +0200	[thread overview]
Message-ID: <E1X3mAj-0004OX-CS@janus> (raw)
In-Reply-To: <1404651603867-183637.post@n7.nabble.com>

Hi mazen.e,

On Sun, 6 Jul 2014 06:00:03 -0700 (PDT), "mazen.e"
<mazen.ezzeddine@gmail.com> wrote:

> Dear 
> 
> Many thanks for your reply.
> 
> But what if mistakenly or accidentally the standalone application write to
> the memory where u-boot resides, would that cause the standalone application
> to crash? Otherwise (in case the standalone application has written to
> u-boot memory without crash )  what happens if the standalone app exit the
> loop.

You're actually asking the very general question "what happens if some
code behaves badly", and the very general answer is "then bad things
happen".

Specifically, you do realize already that if an application overwrites
the U-Boot code in RAM, then upon returning it'll give control back to
a corrupted U-Boot, which can have all sorts of bad effects.

> Regards, 

Amicalement,
-- 
Albert.

  reply	other threads:[~2014-07-06 13:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-06 11:10 [U-Boot] Giving control to standalone app mazen.e
2014-07-06 11:16 ` Jeroen Hofstee
2014-07-06 13:00   ` mazen.e
2014-07-06 13:08     ` Albert ARIBAUD [this message]
2014-07-06 13:25       ` mazen.e

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=E1X3mAj-0004OX-CS@janus \
    --to=albert.u.boot@aribaud.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox