linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Martin Hicks <mort@bork.org>
To: linuxppc-embedded@ozlabs.org
Subject: Re: U-boot CPU post failure on 405gp
Date: Thu, 30 Mar 2006 19:51:19 -0500	[thread overview]
Message-ID: <20060331005119.GM27792@bork.org> (raw)
In-Reply-To: <20060330211143.GK27792@bork.org>

[-- Attachment #1: Type: text/plain, Size: 801 bytes --]



On Thu, Mar 30, 2006 at 04:11:43PM -0500, Martin Hicks wrote:
> 
> POST cpu link = 0
> ret = -1, link = 0, code = 03fa5ab8, lr = 0
> 
> It looks clear to me that link == 0, so the test worked fine.
> 
> However, if I take away the "static" from the cpu_post_test_bc()
> declaration then everything works fine.
> 
> I've posted "objdump -dS" output for post/cpu/b.o with and without
> cpu_post_test_bc() declared as static at:

It looks like the problem is the automatic inlining of the static
function.  If I declare cpu_post_test_bc as:

__attribute__((noinline))
static int cpu_post_test_bc (ulong cmd, ulong bo, ulong bi,
    int pjump, int dec, int link, ulong pctr, ulong cr)


Then the test completes.
mh

-- 
Martin Hicks || mort@bork.org || PGP/GnuPG: 0x4C7F2BEE

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2006-03-31  0:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-30 21:11 U-boot CPU post failure on 405gp Martin Hicks
2006-03-31  0:51 ` Martin Hicks [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=20060331005119.GM27792@bork.org \
    --to=mort@bork.org \
    --cc=linuxppc-embedded@ozlabs.org \
    /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;
as well as URLs for NNTP newsgroup(s).