Ignore:
Timestamp:
Jun 27, 2017, 10:24:13 AM (7 years ago)
Author:
alain
Message:

Fix bug in kernel_init, and reduce size of remote_fifo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_ioc.c

    r52 r68  
    128128             lba , (intptr_t)buffer , hal_time_stamp() );
    129129
    130 #if USE_IOB    // software L2/L3 cache coherence for memory buffer
    131 
    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    }
    136136
    137137    // get extended pointer on IOC chdev descriptor
     
    155155             " completes / error = %d / at cycle %d\n",
    156156             __FUNCTION__ , this->trdid , this->process->pid ,
    157              this->dev.ioc.error , hal_time_stamp() );
     157             this->command.ioc.error , hal_time_stamp() );
    158158
    159159    // return I/O operation status
     
    186186    thread_t * this = CURRENT_THREAD;
    187187
    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 );
    193190
    194191    // get extended pointer on IOC[0] chdev
Note: See TracChangeset for help on using the changeset viewer.