Changeset 545 for soft/giet_vm/giet_drivers/bdv_driver.c
- Timestamp:
- Apr 4, 2015, 11:32:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/bdv_driver.c
r529 r545 15 15 #include <bdv_driver.h> 16 16 #include <xcu_driver.h> 17 #include <mmc_driver.h> 17 18 #include <kernel_locks.h> 18 19 #include <utils.h> … … 96 97 _bdv_set_register( BLOCK_DEVICE_COUNT , count ); 97 98 _bdv_set_register( BLOCK_DEVICE_LBA , lba ); 99 100 #if USE_IOB // software L2/L3 cache coherence 101 if ( to_mem ) _mmc_inval( buf_paddr, count<<9 ); 102 else _mmc_sync( buf_paddr, count<<9 ); 103 #endif // end software L2/L3 cache coherence 98 104 99 105 ///////////////////////////////////////////////////////////////////// … … 151 157 if ( USE_PIC ) _ext_irq_alloc( ISR_BDV , 0 , &wti_index ); 152 158 159 // set _bdv_gtid 160 _bdv_gtid = (procid<<16) + ltid; 161 153 162 // enters critical section 154 163 _it_disable( &save_sr ); 155 164 156 // set _bdv_gtid and reset runnable 157 _bdv_gtid = (procid<<16) + ltid; 165 // reset runnable 158 166 _set_task_slot( x, y, p, ltid, CTX_RUN_ID, 0 ); 159 167
Note: See TracChangeset
for help on using the changeset viewer.