From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Tue, 6 Oct 2009 18:53:05 +0200 Subject: [U-Boot] [PATCH 0/2] Make sure 85xx bss doesn't start at 0x0 In-Reply-To: <20091006152210.37EB2F15B3E@gemini.denx.de> References: <1254783670-21301-1-git-send-email-ptyser@xes-inc.com> <1254839043.24664.1890.camel@localhost.localdomain> <20091006152210.37EB2F15B3E@gemini.denx.de> Message-ID: <200910061853.05133.sr@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 On Tuesday 06 October 2009 17:22:10 Wolfgang Denk wrote: > > My concern was that we use __bss_start and _end to calculate the size of > > the bss to zero out. If the bss wraps, I'd be concerned about what gets > > cleared as _end would be truncated to a low memory address while > > __bss_start would be a high memory address. Or other similar problems - > > I didn't investigate what would really happen, I was just worried what > > could happen:) > > So far U-Boot is actually a 32 bit boot loader; address calculations > like this "just wrap around". So far this has not caused problems yet; > what has caused problems is that we can have overlapping sections on > 4xx. Also it's probably overkill that each board has it's own linker > script. > > I would like to see this fixed in this process. Maybe Stefan finds > some spare cycles to address this. Yes, the consolidation of the 4xx linker scripts is definitely something that should be worked on. Again, I'll put it on my to-do list. But I won't complain if somebody else sends some patches here. ;) Cheers, Stefan -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de