From: Mike Frysinger Date: Wed, 29 Feb 2012 14:04:25 -0500 Subject: [U-Boot] memory corruption on nios2 due to overlap of gbl data and malloc In-Reply-To: References: <4F42D61C.6080201@alexhornung.com> <4F4D621F.6000301@aribaud.net> Message-ID: <201202291404.26773.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: