public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] BSS initialization wrong on ARM??
@ 2004-05-04  9:12 Markus Pietrek
  2004-06-08 23:45 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Markus Pietrek @ 2004-05-04  9:12 UTC (permalink / raw)
  To: u-boot

Hi folks,

on the smdk2410 I found out that the BSS segment is initialized at offset 0x4 
and not with offset 0x0, leaving the first entry undefined (in my case 
timer_load_val), at least with gcc-3.3. Cause of pain is 
arm920t/start.S:clear_bss

clear_bss:
	ldr	r0, _bss_start		/* find start of bss segment        */
	add	r0, r0, #4		/* start at first byte of bss       */
	ldr	r1, _bss_end		/* stop here                        */

I think the add has to be removed. This also seems to be the case on arm720t 
and arm926ejs.

Bye,
-- 
Markus Pietrek
Kueferstrasse 8, D-79206 Breisach, Germany
FS Forth-Systeme GmbH
Phone: +49 (7667) 908 145,  FAX +49 (7667) 908 245

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <20040608234517.5E083C109F@atlas.denx.de>]

end of thread, other threads:[~2004-06-18  2:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-04  9:12 [U-Boot-Users] BSS initialization wrong on ARM?? Markus Pietrek
2004-06-08 23:45 ` Wolfgang Denk
     [not found] <20040608234517.5E083C109F@atlas.denx.de>
2004-06-15  8:02 ` Andrea Scian
2004-06-15 19:27   ` Wolfgang Denk
2004-06-18  2:15     ` Paul Ruhland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox