All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] what/where is image_entry()
Date: Thu, 24 Nov 2016 11:04:48 +0100	[thread overview]
Message-ID: <20161124110448.4cb3ad5d@crub> (raw)
In-Reply-To: <1479861891670.32641@edt.com>

On Wed, 23 Nov 2016 00:44:51 +0000
Haleigh Novak haleigh at edt.com wrote:
...
> Please forgive the uber-beginner question but I can not find anything related online,
> I have been digging around in the uboot source and I stumbled on the image_entry()
> function; sometimes it has parameters and sometimes it does not. I am unable to 
> locate the source(s) of the function, so I can not see how it works. Could someone
> explain what image_entry() actually does or at least point me to where it is defined?

it starts execution of the first code in the U-Boot image at address
defined with CONFIG_SYS_TEXT_BASE. What it actually does is platform
dependent. Compile the image for your target and then search for this
address the System.map file. On ARM there will be a _start label for
this address, it is usually some code in assembly file (branch
instruction at reset vector).

--
Anatolij

      reply	other threads:[~2016-11-24 10:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-23  0:44 [U-Boot] what/where is image_entry() Haleigh Novak
2016-11-24 10:04 ` Anatolij Gustschin [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=20161124110448.4cb3ad5d@crub \
    --to=agust@denx.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 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.