All of lore.kernel.org
 help / color / mirror / Atom feed
From: tike64 at gmail.com <tike64@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] question about TEXT_BASE in U-boot
Date: Mon, 15 Dec 2008 08:53:13 +0200	[thread overview]
Message-ID: <4945FED9.60205@gmail.com> (raw)
In-Reply-To: <1229255632.32640.10.camel@wangrui-laptop>

wangrui wrote:
> After power up board, CPU will execute the instruction store at 0x0 (ROM
> flash), and I download u-boot
> to ROM flash (start from 0x0) so that the instruction store at 0x0 is 
> "a0f00000: ea000014 b a0f00058 <reset>"
> 
> Then program will jump to 0xa0f00058 (SDRAM)...

No, it does not. b is a relative branch and causes a jump to 0xa0f00058 
only if you execute it at 0xa0f00000. You would make yourself a big 
favor by familiarizing yourself with ARM instruction set.

--

Timo

      reply	other threads:[~2008-12-15  6:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-14 10:14 [U-Boot] question about TEXT_BASE in U-boot 王睿
     [not found] ` <5ad5c5a40812140226h642b11cal934e3dd398001276@mail.gmail.com>
2008-12-14 11:53   ` wangrui
2008-12-15  6:53     ` tike64 at gmail.com [this message]

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=4945FED9.60205@gmail.com \
    --to=tike64@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.