[U-Boot-Users] another question of relocate_code

YanMin Qiao sepherosa at sjtu.edu.cn
Sat Jan 4 14:46:22 CET 2003


Hi all:

<u-boot>/cpu/mpc8xx/start.S

....
relocate_code:
    mr    r1,  r3        /* Set new stack pointer        */
    mr    r9,  r4        /* Save copy of Global Data pointer    */
    mr    r10, r5        /* Save copy of Destination Address    */
....
    sub    r15, r10, r4

    /* First our own GOT */
    add    r14, r14, r15
    /* the the one used by the C code */
    add    r30, r30, r15
              ^^^
....

I have followed the code to the end of board_init_r().  I didn't figured 
out where r30 is used
as mentioned.

Thanks

Best regards





More information about the U-Boot mailing list