Changeset 563 for soft/giet_vm/giet_drivers/bdv_driver.c
- Timestamp:
- May 18, 2015, 6:45:58 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/bdv_driver.c
r545 r563 74 74 75 75 #if GIET_DEBUG_IOC_DRIVER 76 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER ) 76 77 _printf("\n[BDV DEBUG] P[%d,%d,%d] enters _bdv_access at cycle %d\n" 77 78 " use_irq = %d / to_mem = %d / lba = %x / paddr = %l / count = %d\n", … … 114 115 115 116 #if GIET_DEBUG_IOC_DRIVER 117 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER ) 116 118 _printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] launch transfer" 117 119 " in polling mode at cycle %d\n", … … 124 126 125 127 #if GIET_DEBUG_IOC_DRIVER 128 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER ) 126 129 _printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] wait on BDV_STATUS ...\n", 127 130 x , y , p ); … … 148 151 { 149 152 unsigned int save_sr; 150 unsigned int wti_index;151 153 unsigned int ltid = _get_current_task_id(); 152 154 153 155 // activates BDV interrupt 154 156 _bdv_set_register( BLOCK_DEVICE_IRQ_ENABLE, 1 ); 155 156 // allocate a WTI mailbox to the calling proc if external IRQ157 if ( USE_PIC ) _ext_irq_alloc( ISR_BDV , 0 , &wti_index );158 157 159 158 // set _bdv_gtid … … 171 170 172 171 #if GIET_DEBUG_IOC_DRIVER 172 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER ) 173 173 _printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] launch transfer" 174 174 " in descheduling mode at cycle %d\n", … … 180 180 181 181 #if GIET_DEBUG_IOC_DRIVER 182 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER ) 182 183 _printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] resume execution at cycle %d\n", 183 184 x , y , p , _get_proctime() ); 184 185 #endif 185 186 // release WTI mailbox if external IRQ187 if ( USE_PIC ) _ext_irq_release( ISR_BDV , 0 , wti_index );188 186 189 187 // restore SR … … 199 197 200 198 #if GIET_DEBUG_IOC_DRIVER 199 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER ) 201 200 _printf("\n[BDV DEBUG] _bdv_access() : P[%d,%d,%d] exit at cycle %d\n", 202 201 x , y , p , _get_proctime() ); … … 260 259 unsigned int y = (procid >> P_WIDTH) & ((1<<Y_WIDTH)-1); 261 260 unsigned int p = procid & ((1<<P_WIDTH)-1); 262 _printf("\n[IOC DEBUG] Processor[%d,%d,%d] enters _bdv_isr() at cycle %d\n" 261 if ( _get_proctime() > GIET_DEBUG_IOC_DRIVER ) 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", 264 264 x , y , p , _get_proctime() ,
Note: See TracChangeset
for help on using the changeset viewer.