Changeset 634


Ignore:
Timestamp:
Feb 17, 2014, 5:05:28 PM (10 years ago)
Author:
bouyer
Message:

Pass the preloader's function vector address in a0 to the next stage.
This way the next stage doesn't have to know the address of the preloader.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/src/reset.S

    r606 r634  
    6666    /*  Addresses of the functions provided by this reset code */
    6767
     68preloader_vector:
    6869    .word   RESET_VERSION           /* 0xbfc0008 */
    6970    .word   dtb_addr                /* 0xbfc000c */
     
    181182     * Processor O jumps to the entry address defined in the .elf file,
    182183     * and returned by reset_elf_loader function.
    183      * All function arguments are 0
    184      */
    185 
    186     move    a0,     zero
     184     * First argument is pointer to the preloader function vectors
     185     * other function arguments are 0
     186     */
     187
     188    la      a0,     preloader_vector
    187189    move    a1,     zero
    188190    move    a2,     zero
Note: See TracChangeset for help on using the changeset viewer.