Changeset 593 for soft


Ignore:
Timestamp:
Jul 8, 2015, 4:09:23 PM (9 years ago)
Author:
alain
Message:

Bloup

Location:
soft/giet_vm/giet_drivers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/bdv_driver.c

    r563 r593  
    7373    unsigned int p       = procid & ((1<<P_WIDTH)-1);
    7474
    75 #if GIET_DEBUG_IOC_DRIVER
    76 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
     75#if GIET_DEBUG_IOC
     76if ( _get_proctime() > GIET_DEBUG_IOC )
    7777_printf("\n[BDV DEBUG] P[%d,%d,%d] enters _bdv_access at cycle %d\n"
    7878        "  use_irq = %d / to_mem = %d / lba = %x / paddr = %l / count = %d\n",
     
    8181
    8282    // check buffer alignment
    83     if( buf_paddr & 0x1FF )
    84     {
    85         _printf("\n[BDV ERROR] in _bdv_access() : buffer not block aligned\n");
     83    if( buf_paddr & 0x3F )
     84    {
     85        _printf("\n[BDV ERROR] in _bdv_access() : buffer not cache ligne aligned\n");
    8686        return -1;
    8787    }
     
    114114        else             _bdv_set_register( BLOCK_DEVICE_OP, BLOCK_DEVICE_READ );
    115115
    116 #if GIET_DEBUG_IOC_DRIVER
    117 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
     116#if GIET_DEBUG_IOC
     117if ( _get_proctime() > GIET_DEBUG_IOC )
    118118_printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] launch transfer"
    119119        " in polling mode at cycle %d\n",
     
    125125            status = _bdv_get_register( BLOCK_DEVICE_STATUS );
    126126
    127 #if GIET_DEBUG_IOC_DRIVER
    128 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
     127#if GIET_DEBUG_IOC
     128if ( _get_proctime() > GIET_DEBUG_IOC )
    129129_printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] wait on BDV_STATUS ...\n",
    130130        x , y , p );
     
    169169        else             _bdv_set_register( BLOCK_DEVICE_OP, BLOCK_DEVICE_READ  );
    170170
    171 #if GIET_DEBUG_IOC_DRIVER
    172 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
     171#if GIET_DEBUG_IOC
     172if ( _get_proctime() > GIET_DEBUG_IOC )
    173173_printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] launch transfer"
    174174        " in descheduling mode at cycle %d\n",
     
    179179        _ctx_switch();                     
    180180
    181 #if GIET_DEBUG_IOC_DRIVER
    182 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
     181#if GIET_DEBUG_IOC
     182if ( _get_proctime() > GIET_DEBUG_IOC )
    183183_printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] resume execution at cycle %d\n",
    184184        x , y , p , _get_proctime() );
     
    196196    _spin_lock_release( &_bdv_lock );     
    197197
    198 #if GIET_DEBUG_IOC_DRIVER
    199 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
     198#if GIET_DEBUG_IOC
     199if ( _get_proctime() > GIET_DEBUG_IOC )
    200200_printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] exit at cycle %d\n",
    201201        x , y , p , _get_proctime() );
     
    254254                   0 );          // don't force context switch
    255255
    256 #if GIET_DEBUG_IOC_DRIVER 
     256#if GIET_DEBUG_IOC 
    257257unsigned int procid  = _get_procid();
    258258unsigned int x       = procid >> (Y_WIDTH + P_WIDTH);
    259259unsigned int y       = (procid >> P_WIDTH) & ((1<<Y_WIDTH)-1);
    260260unsigned int p       = procid & ((1<<P_WIDTH)-1);
    261 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER )
     261if ( _get_proctime() > GIET_DEBUG_IOC )
    262262_printf("\n[BDV DEBUG] Processor[%d,%d,%d] enters _bdv_isr() at cycle %d\n"
    263263        "  for task %d running on P[%d,%d,%d] / bdv_status = %x\n",
  • soft/giet_vm/giet_drivers/sdc_driver.c

    r563 r593  
    246246#endif
    247247
     248    return 0;
    248249} // end _sdc_init()
    249250
Note: See TracChangeset for help on using the changeset viewer.