public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Markus Pietrek <maillist@fsforth.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] BSS initialization wrong on ARM??
Date: Tue, 4 May 2004 11:12:56 +0200	[thread overview]
Message-ID: <200405041112.56047.maillist@fsforth.de> (raw)

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

             reply	other threads:[~2004-05-04  9:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-04  9:12 Markus Pietrek [this message]
2004-06-08 23:45 ` [U-Boot-Users] BSS initialization wrong on ARM?? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200405041112.56047.maillist@fsforth.de \
    --to=maillist@fsforth.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox