This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

bug about MPC8260 FEC driver?


in file ...\ecos\packages\devs\eth\powerpc\quicc2\current\src\if_fec.c
founction fec_eth_init():

there are code :
if (cache_state) {
      HAL_DCACHE_DISABLE();
      HAL_DCACHE_INVALIDATE_ALL();
    }

i think it should be:
if (cache_state) {
      HAL_DCACHE_SYNC();
      HAL_DCACHE_DISABLE();
    }

If we call HAL_DCACHE_DISABLE() here, some modified in the ram will lose. In our test, once system goes here, the value of net_mem (in support.c) will change to 0.
 

 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]