- Timestamp:
- Jul 8, 2015, 4:09:23 PM (9 years ago)
- Location:
- soft/giet_vm/giet_drivers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/bdv_driver.c
r563 r593 73 73 unsigned int p = procid & ((1<<P_WIDTH)-1); 74 74 75 #if GIET_DEBUG_IOC _DRIVER76 if ( _get_proctime() > GIET_DEBUG_IOC _DRIVER)75 #if GIET_DEBUG_IOC 76 if ( _get_proctime() > GIET_DEBUG_IOC ) 77 77 _printf("\n[BDV DEBUG] P[%d,%d,%d] enters _bdv_access at cycle %d\n" 78 78 " use_irq = %d / to_mem = %d / lba = %x / paddr = %l / count = %d\n", … … 81 81 82 82 // check buffer alignment 83 if( buf_paddr & 0x 1FF )84 { 85 _printf("\n[BDV ERROR] in _bdv_access() : buffer not blockaligned\n");83 if( buf_paddr & 0x3F ) 84 { 85 _printf("\n[BDV ERROR] in _bdv_access() : buffer not cache ligne aligned\n"); 86 86 return -1; 87 87 } … … 114 114 else _bdv_set_register( BLOCK_DEVICE_OP, BLOCK_DEVICE_READ ); 115 115 116 #if GIET_DEBUG_IOC _DRIVER117 if ( _get_proctime() > GIET_DEBUG_IOC _DRIVER)116 #if GIET_DEBUG_IOC 117 if ( _get_proctime() > GIET_DEBUG_IOC ) 118 118 _printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] launch transfer" 119 119 " in polling mode at cycle %d\n", … … 125 125 status = _bdv_get_register( BLOCK_DEVICE_STATUS ); 126 126 127 #if GIET_DEBUG_IOC _DRIVER128 if ( _get_proctime() > GIET_DEBUG_IOC _DRIVER)127 #if GIET_DEBUG_IOC 128 if ( _get_proctime() > GIET_DEBUG_IOC ) 129 129 _printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] wait on BDV_STATUS ...\n", 130 130 x , y , p ); … … 169 169 else _bdv_set_register( BLOCK_DEVICE_OP, BLOCK_DEVICE_READ ); 170 170 171 #if GIET_DEBUG_IOC _DRIVER172 if ( _get_proctime() > GIET_DEBUG_IOC _DRIVER)171 #if GIET_DEBUG_IOC 172 if ( _get_proctime() > GIET_DEBUG_IOC ) 173 173 _printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] launch transfer" 174 174 " in descheduling mode at cycle %d\n", … … 179 179 _ctx_switch(); 180 180 181 #if GIET_DEBUG_IOC _DRIVER182 if ( _get_proctime() > GIET_DEBUG_IOC _DRIVER)181 #if GIET_DEBUG_IOC 182 if ( _get_proctime() > GIET_DEBUG_IOC ) 183 183 _printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] resume execution at cycle %d\n", 184 184 x , y , p , _get_proctime() ); … … 196 196 _spin_lock_release( &_bdv_lock ); 197 197 198 #if GIET_DEBUG_IOC _DRIVER199 if ( _get_proctime() > GIET_DEBUG_IOC _DRIVER)198 #if GIET_DEBUG_IOC 199 if ( _get_proctime() > GIET_DEBUG_IOC ) 200 200 _printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] exit at cycle %d\n", 201 201 x , y , p , _get_proctime() ); … … 254 254 0 ); // don't force context switch 255 255 256 #if GIET_DEBUG_IOC _DRIVER256 #if GIET_DEBUG_IOC 257 257 unsigned int procid = _get_procid(); 258 258 unsigned int x = procid >> (Y_WIDTH + P_WIDTH); 259 259 unsigned int y = (procid >> P_WIDTH) & ((1<<Y_WIDTH)-1); 260 260 unsigned int p = procid & ((1<<P_WIDTH)-1); 261 if ( _get_proctime() > GIET_DEBUG_IOC _DRIVER)261 if ( _get_proctime() > GIET_DEBUG_IOC ) 262 262 _printf("\n[BDV DEBUG] Processor[%d,%d,%d] enters _bdv_isr() at cycle %d\n" 263 263 " for task %d running on P[%d,%d,%d] / bdv_status = %x\n", -
soft/giet_vm/giet_drivers/sdc_driver.c
r563 r593 246 246 #endif 247 247 248 return 0; 248 249 } // end _sdc_init() 249 250
Note: See TracChangeset
for help on using the changeset viewer.