public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jens Scharsig <esw@bus-elektronik.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Coldfile 5282 - Hello_world again
Date: Fri, 27 Jan 2006 16:34:26 +0100	[thread overview]
Message-ID: <drdei2$i0q$1@sea.gmane.org> (raw)

Hello

I am back again on u-boot.
I can't run the have the hello_world example. I get exceptions after 
start it. So I diassemble and discover the code.
I think the entry point is fault or the initcode is missed.

...
int hello_world (int argc, char *argv[])
{
    20000:	4e56 0000      	linkw %fp,#0
	int i;

	/* Print the ABI version */
	app_startup(argv);
    20004:	2f2e 000c      	movel %fp@(12),%sp at -
    20008:	206d 000c      	moveal %a5@(12),%a0
    2000c:	4e90           	jsr %a0@
...

a0 should load with be contains 00020134

...
00020134 <app_startup>:

extern unsigned long __bss_start, _end;

void app_startup(char **argv)
{
    20134:	4e56 0000      	linkw %fp,#0
	unsigned long * cp = &__bss_start;
...

but moveal %a5@(12),%a0 gets a different address. How or where to 
initialize the a5 register.

Any sugestions

Thx Jens

             reply	other threads:[~2006-01-27 15:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-27 15:34 Jens Scharsig [this message]
2006-01-27 17:29 ` [U-Boot-Users] Coldfile 5282 - Hello_world again Andrew Wozniak
2006-01-30  7:12   ` [U-Boot-Users] " Jens Scharsig
2006-01-30 15:03 ` Jens Scharsig

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='drdei2$i0q$1@sea.gmane.org' \
    --to=esw@bus-elektronik.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