u-boot/lib_ppc
Wolfgang Denk bce84c4dab Prepare U-Boot for gcc-4.x: fix global data pointer initialization
The global data pointer, stored in r29 before relocation to RAM, was
not initialized to a correct value. This happened because the pointer
declaration was done locally in the scope of the board_init_f()
function. What follows is a cite from gcc.info, 5.37, "Variables in
Specified Registers":
    ...
    The compiler's data flow analysis is capable of determining where
    the specified registers contain live values, and where they are
    available for other uses. Stores into local register variables
    may be deleted when they appear to be dead according to dataflow
    analysis. References to local register variables may be deleted
    or moved or simplified.
    ...
Moving the global data declaration to global scope solved the
problem.
2005-08-30 14:13:23 +02:00
..
bat_rw.c Initial revision 2002-08-17 09:36:01 +00:00
board.c Prepare U-Boot for gcc-4.x: fix global data pointer initialization 2005-08-30 14:13:23 +02:00
cache.c * Patch by Martin Winistoerfer, 23 Mar 2003 2003-03-31 17:27:09 +00:00
extable.c * Code cleanup: 2003-06-27 21:31:46 +00:00
interrupts.c * Cleanup lowboot code for MPC5200 2004-01-02 14:00:00 +00:00
kgdb.c * Code cleanup: 2003-06-27 21:31:46 +00:00
Makefile * Patch by Gleb Natapov, 19 Sep 2003: 2003-12-06 19:49:23 +00:00
ppcstring.S Initial revision 2000-07-19 14:09:16 +00:00
ticks.S Initial revision 2001-11-26 22:06:16 +00:00
time.c * Code cleanup: 2003-06-27 21:31:46 +00:00