[U-Boot-Users] Stack pointer corruption on 8541 - short version.

Michael michaelzwrk at gmail.com
Mon Jan 15 09:47:48 CET 2007


Hi all.
I posted a mail describing a problem I have with stack pointer on a
board with MPC8541.
I figured out I gave a complicated description for a simple problem,
so here it is rephrased:
I get the stack pointer corrupted when returning from function call on
the first functions (running in flash, L1 cache used for stack).
for example, in start.S:
bl foo1(), when foo1() is:
void foo1()
{
  foo2();
}
void foo2()
{
  foo3();
}
The return address from foo2() is some random crap.

Any ideas what could be the reason?
Thanks,
   Michael




More information about the U-Boot mailing list