public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: llandre <r&d2@dave-tech.it>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] simple_strtoul overwrites bd_info field
Date: Wed, 30 Aug 2006 10:38:18 +0200	[thread overview]
Message-ID: <44F54E7A.7050105@dave-tech.it> (raw)
In-Reply-To: <20060830081413.D1B8D352627@atlas.denx.de>

>> As endp points to one field of the struct bd_info, it gets corrupted. So 
> 
> Umm.. it should not. endp is the second art when calling
> simple_strtoul(), and "lib_arm/board.c" passes the address of a local
> variable here.
> 
>> the problem is about the pointer "e" in function start_armboot that is 
>> passed to simple_strtoul. Any idea?
> 
> Did you check which address gets passed to simple_strtoul()?
Yes and ...
> Did you check the generated assembler code as I suggested?
... yes. This is how I found out what happens. See the two dumps here 
http://www.dave-tech.it/download/misc/zefeer.
Stuct bd_info starts at 0xD1EBFF3C.




-- 
llandre

DAVE Electronics System House - R&D Department
web:   http://www.dave-tech.it
email: r&d2 at dave-tech.it

  reply	other threads:[~2006-08-30  8:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-29 15:44 [U-Boot-Users] simple_strtoul overwrites bd_info field llandre
2006-08-29 16:04 ` Wolfgang Denk
2006-08-30  7:58   ` llandre
2006-08-30  8:14     ` Wolfgang Denk
2006-08-30  8:38       ` llandre [this message]
2006-08-30  8:52         ` llandre
2006-08-30 10:13         ` Wolfgang Denk
2006-08-31 11:15           ` llandre
2006-08-31 12:26             ` Wolfgang Denk

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=44F54E7A.7050105@dave-tech.it \
    --to=r&d2@dave-tech.it \
    --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