Changeset 68 for trunk/kernel/devices
- Timestamp:
- Jun 27, 2017, 10:24:13 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_ioc.c
r52 r68 128 128 lba , (intptr_t)buffer , hal_time_stamp() ); 129 129 130 #if USE_IOB// software L2/L3 cache coherence for memory buffer131 132 if ( cmd_type == IOC_READ ) dev_mmc_inval( XPTR( local_cxy , buffer ) , count<<9 );133 else dev_mmc_sync( XPTR( local_cxy , buffer ) , count<<9 );134 135 #endif // end software L2/L3 cache coherence 130 // software L2/L3 cache coherence for memory buffer 131 if( chdev_dir.iob ) 132 { 133 if ( cmd_type == IOC_READ ) dev_mmc_inval( XPTR( local_cxy , buffer ) , count<<9 ); 134 else dev_mmc_sync ( XPTR( local_cxy , buffer ) , count<<9 ); 135 } 136 136 137 137 // get extended pointer on IOC chdev descriptor … … 155 155 " completes / error = %d / at cycle %d\n", 156 156 __FUNCTION__ , this->trdid , this->process->pid , 157 this-> dev.ioc.error , hal_time_stamp() );157 this->command.ioc.error , hal_time_stamp() ); 158 158 159 159 // return I/O operation status … … 186 186 thread_t * this = CURRENT_THREAD; 187 187 188 #if USE_IOB // software L2/L3 cache coherence for memory buffer 189 190 dev_mmc_inval( XPTR( local_cxy , buffer ) , count<<9 ); 191 192 #endif // end software L2/L3 cache coherence 188 // software L2/L3 cache coherence for memory buffer 189 if( chdev_dir.iob ) dev_mmc_inval( XPTR( local_cxy , buffer ) , count<<9 ); 193 190 194 191 // get extended pointer on IOC[0] chdev
Note: See TracChangeset
for help on using the changeset viewer.