From: Wolfgang Denk Date: Tue, 06 Oct 2009 19:51:00 +0200 Subject: [U-Boot] [PATCH 0/2] Make sure 85xx bss doesn't start at 0x0 In-Reply-To: <1254843932.24664.2083.camel@localhost.localdomain> References: <1254783670-21301-1-git-send-email-ptyser@xes-inc.com> <20091006073212.F1E664C021@gemini.denx.de> <1254830475.22896.43.camel@ptyser-laptop> <20091006140136.E9EE51824EB6@gemini.denx.de> <1DE23DE0-B901-4E15-845C-43889EE0B178@kernel.crashing.org> <1254839043.24664.1890.camel@localhost.localdomain> <20091006152210.37EB2F15B3E@gemini.denx.de> <1254843932.24664.2083.camel@localhost.localdomain> Message-ID: <20091006175100.B4C12F15B3E@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Peter Tyser, In message <1254843932.24664.2083.camel@localhost.localdomain> you wrote: > > I personally like the current implementation of putting the bss after > the entire U-Boot image. It keeps U-Boot's code, malloc pool, stack, > bss, etc all in the same general area which is nice, and has the side > benefit that the bootpg won't be overwritten. OK, if you think so... > I know ORing in 0x10 is a bit ugly, but what's the real downside of > doing it? Nothing. I just hate to allocate the bss at 0x0, because this is actually incorrect - it's the result of an address overflow / truncation, and pretty much misleading to someone trying to read and understand the code. For the linked image, it does not _look_ as if the bss was located _after_ the U-Boot image, it looks detached and allocated in low RAM. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de We have phasers, I vote we blast 'em! -- Bailey, "The Corbomite Maneuver", stardate 1514.2