Ignore:
Timestamp:
Mar 26, 2014, 6:10:01 PM (10 years ago)
Author:
alain
Message:

Introducing support for IOPIC component.

File:
1 edited

Legend:

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

    r258 r294  
    6868};
    6969
     70///////////////////////////////////////////////
     71static void _display_cause( unsigned int type )
     72{
     73    unsigned int gpid       = _get_procid();
     74    unsigned int cluster_xy = gpid / NB_PROCS_MAX;
     75    unsigned int lpid       = gpid % NB_PROCS_MAX;
     76    unsigned int x          = cluster_xy >> Y_WIDTH;
     77    unsigned int y          = cluster_xy & ((1<<Y_WIDTH)-1);
     78    unsigned int task       = _get_context_slot(CTX_LTID_ID);
    7079
    71 static void _display_cause(unsigned int type)
    72 {
    73     _tty_get_lock( 0 );
    74     _puts("\n[GIET] Exception for task ");
    75     _putd(_get_context_slot(CTX_LTID_ID));
    76     _puts(" on processor ");
    77     _putd(_get_procid());
    78     _puts(" at cycle ");
    79     _putd(_get_proctime());
    80     _puts("\n - type      : ");
    81     _puts((char *) exc_type[type]);
    82     _puts("\n - EPC       : ");
    83     _putx(_get_epc());
    84     _puts("\n - BVAR      : ");
    85     _putx(_get_bvar());
    86     _puts("\n");
    87     _puts("...Task desactivated\n");
    88     _tty_release_lock( 0 );
     80    _printf("\n[GIET] Exception for task %d on processor[%d,%d,%d] at cycle %d\n"
     81            " - type      : %s\n"
     82            " - EPC       : %x\n"
     83            " - BVAR      : %x\n"
     84            "...Task desactivated\n",
     85            task, x, y, lpid, _get_proctime(),
     86            exc_type[type], _get_epc(), _get_bvar() );
    8987
    9088    // goes to sleeping state
Note: See TracChangeset for help on using the changeset viewer.