From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Pietrek Date: Tue, 4 May 2004 11:12:56 +0200 Subject: [U-Boot-Users] BSS initialization wrong on ARM?? Message-ID: <200405041112.56047.maillist@fsforth.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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