U-boot CPU post failure on 405gp
Martin Hicks
mort at bork.org
Fri Mar 31 11:51:19 EST 2006
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 at bork.org || PGP/GnuPG: 0x4C7F2BEE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060330/5cf831e1/attachment.pgp
More information about the Linuxppc-embedded
mailing list