From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] memory corruption on nios2 due to overlap of gbl data and malloc
Date: Wed, 29 Feb 2012 14:04:25 -0500 [thread overview]
Message-ID: <201202291404.26773.vapier@gentoo.org> (raw)
In-Reply-To: <CALButCJVw8+_HXjF1RYD6T8Pea8SF6UoJJPN_G3jEamuzYn03g@mail.gmail.com>
On Tuesday 28 February 2012 18:32:57 Graeme Russ wrote:
> And this is why I dislike the implementation - You have to do all sorts of
> weird calucations to put things in the right place when, in fact, the
> location of gd and bd in memory is totally irrelavent.
right, that's why i minimized the pain for Blackfin users -- this is all
handled in the arch's config-pre.h header. board porters only need to declare
the size of regions they care about (monitor and heap sizes).
> Ow, ouch! - And that padding makes things more fun - The memory layout is
>
> U-Boot | gd | pad | bd | pad | heap
fwiw, i documented the Blackfin memory layout:
http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:memory-layout
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120229/481c9218/attachment.pgp>
next prev parent reply other threads:[~2012-02-29 19:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-20 23:24 [U-Boot] memory corruption on nios2 due to overlap of gbl data and malloc Alex Hornung
2012-02-28 22:29 ` Albert ARIBAUD
2012-02-28 22:39 ` Graeme Russ
2012-02-28 22:55 ` Albert ARIBAUD
2012-02-28 23:20 ` Graeme Russ
2012-02-28 23:24 ` Albert ARIBAUD
2012-02-28 23:32 ` Graeme Russ
2012-02-29 19:04 ` Mike Frysinger [this message]
2012-02-29 22:22 ` Graeme Russ
2012-02-29 22:29 ` Mike Frysinger
2012-02-29 22:41 ` Graeme Russ
2012-03-01 7:09 ` [U-Boot] [PATCH] nios2: move gd and bd into BSS Thomas Chou
2012-03-01 17:17 ` Mike Frysinger
2012-03-02 2:55 ` [U-Boot] [PATCH v2] " Thomas Chou
2012-03-02 3:22 ` Mike Frysinger
2012-03-01 21:57 ` [U-Boot] memory corruption on nios2 due to overlap of gbl data and malloc Albert ARIBAUD
2012-03-01 22:11 ` Graeme Russ
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=201202291404.26773.vapier@gentoo.org \
--to=vapier@gentoo.org \
--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