All of lore.kernel.org
 help / color / mirror / Atom feed
From: David George <dgeorge@rapitasystems.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Standalone API examples on the P4080DS
Date: Fri, 16 Jan 2015 11:19:22 +0000	[thread overview]
Message-ID: <54B8F3BA.3090309@rapitasystems.com> (raw)

Hi all,

I have compiled the hello_world standalone API example documented at 
http://www.denx.de/wiki/view/DULG/UBootStandalone for the Freescale 
P4080DS development board.

For the standalone api example hello_world, the tutorial (linked above) 
states that the entry point of the application *is offset 4 bytes from 
the start of the file* (I.E. address 0x40004).

With all build settings at default, my standalone base address is 
0x40000 (defined in arch/powerpc/config.mk). This produces the following 
object code:

00040000 <hello_world>:
    40000:	94 21 ff e0 	stwu    r1,-32(r1)
    40004:	7c 08 02 a6 	mflr    r0
    40008:	bf 61 00 0c 	stmw    r27,12(r1)
    4000c:	7c 7e 1b 78 	mr      r30,r3
    40010:	7c 83 23 78 	mr      r3,r4
    40014:	90 01 00 24 	stw     r0,36(r1)

It looks like the entry point is 0x40000. Why does the tutorial state 
that the example needs to be run from a 4 byte offset? In this case this 
will result in a failure to create a stack frame for hello_world.

Thanks!

Dave George

Stay informed by joining the Rapita Systems mailing list
http://www.rapitasystems.com/contact/mailing_list

For real-time verifications issues and discussion, follow the Rapita Systems blog
http://www.rapitasystems.com/blog

             reply	other threads:[~2015-01-16 11:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-16 11:19 David George [this message]
2015-01-16 17:08 ` [U-Boot] Standalone API examples on the P4080DS Peter Tyser
2015-01-20 14:54   ` David George

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=54B8F3BA.3090309@rapitasystems.com \
    --to=dgeorge@rapitasystems.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.