Changeset 694 for trunk/softs


Ignore:
Timestamp:
May 17, 2014, 11:59:53 AM (10 years ago)
Author:
cfuguet
Message:

tsar_boot:

  • Displaying Data Bad Virtual Address when exception during preloader.
Location:
trunk/softs/tsar_boot/src
Files:
4 edited

Legend:

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

    r660 r694  
    230230    mfc0    a1, CP0_CAUSE           /* second arg is cause                */
    231231    mfc0    a2, CP0_EPC             /* third argc is epc                  */
     232    mfc2    a3, CP2_DBVAR           /* fourth argc is dbvar               */
    232233    nop
    233234    j       handle_except
  • trunk/softs/tsar_boot/src/reset_elf_loader.c

    r687 r694  
    3939    Elf32_Phdr      elf_pht[PHDR_ARRAY_SIZE];
    4040
    41     unsigned char * buffer_ptr;
     41    unsigned char * buffer_ptr = 0;
    4242    Elf32_Ehdr    * elf_ehdr_ptr;
    4343    Elf32_Phdr    * elf_phdr_ptr;
  • trunk/softs/tsar_boot/src/reset_exception.c

    r586 r694  
    99#include <reset_tty.h>
    1010
    11 void handle_except(int status, int cause, int epc)
     11void handle_except(int status, int cause, int epc, int dbvar)
    1212{
    1313        reset_puts("\n[RESET] exception handler called: \r\n    status ");
     
    1919        reset_puts(")\r\n    epc    ");
    2020        reset_putx(epc);
     21        reset_puts("\r\n    dbvar  ");
     22        reset_putx(dbvar);
    2123        reset_puts("\r\n");
    2224        while (1);
  • trunk/softs/tsar_boot/src/sdcard.c

    r586 r694  
    107107 * \param   sdcard  : Initialized pointer to block device
    108108 * \param   index   : SD card CMD index
    109  * \param   app     : Type of command, 0 for normal command or 1 for application specific
     109 * \param   app     : Type of command, 0 for normal command or 1 for application
     110 *                    specific
    110111 * \param   args    : SD card CMD arguments
    111112 *
Note: See TracChangeset for help on using the changeset viewer.