Changeset 50 for trunk/kernel/devices


Ignore:
Timestamp:
Jun 26, 2017, 3:15:11 PM (7 years ago)
Author:
alain
Message:

bloup

File:
1 edited

Legend:

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

    r23 r50  
    2222 */
    2323
     24#include <hard_config.h>
    2425#include <kernel_config.h>
    2526#include <hal_types.h>
     
    130131#if USE_IOB    // software L2/L3 cache coherence for memory buffer
    131132
    132     if ( type == IOC_READ )  dev_mmc_inval( XPTR( local_cxy , buffer ) , count<<9 );
    133     else                     dev_mmc_sync ( XPTR( local_cxy , buffer ) , count<<9 );
     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 );
    134135
    135136#endif     // end software L2/L3 cache coherence
Note: See TracChangeset for help on using the changeset viewer.