Ignore:
Timestamp:
Apr 5, 2015, 12:09:09 AM (10 years ago)
Author:
alain
Message:

Move the peripheral initialisation from the boot.c to the kernel_init.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_kernel/exc_handler.c

    r528 r547  
    3232// Initialize the exception vector indexed by the CR XCODE field
    3333///////////////////////////////////////////////////////////////////////////////////
     34
     35__attribute__((section(".kdata")))
    3436const _exc_func_t _cause_vector[16] =
    3537{
     
    5254};
    5355
    54 static const char * exc_type[] =
    55 {
    56     "strange unknown cause",
    57     "illegal read address",
    58     "illegal write address",
    59     "inst bus error",
    60     "data bus error",
    61     "breakpoint",
    62     "reserved instruction",
    63     "illegal coproc access",
    64     "arithmetic overflow",
    65 };
    66 
    6756///////////////////////////////////////////////
    6857static void _display_cause( unsigned int type )
     
    7766
    7867
     68    const char * mips32_exc_str[] = { "strange unknown cause  ",
     69                                      "illegal read address   ",
     70                                      "illegal write address  ",
     71                                      "inst bus error         ",
     72                                      "data bus error         ",
     73                                      "breakpoint             ",
     74                                      "reserved instruction   ",
     75                                      "illegal coproc access  ",
     76                                      "arithmetic overflow    "};
     77
    7978    _printf("\n[GIET] Exception for task %d on processor[%d,%d,%d] at cycle %d\n"
    8079            " - type      : %s\n"
     
    8382            "...Task desactivated\n",
    8483            task, x, y, lpid, _get_proctime(),
    85             exc_type[type], _get_epc(), _get_bvar() );
     84            mips32_exc_str[type], _get_epc(), _get_bvar() );
    8685
    8786    // goes to sleeping state
Note: See TracChangeset for help on using the changeset viewer.