[U-Boot-Users] BSS initialization wrong on ARM??

Markus Pietrek maillist at fsforth.de
Tue May 4 11:12:56 CEST 2004

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 

	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.

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

More information about the U-Boot mailing list