This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: bug about MPC8260 FEC driver?
I use below command to get source tree.
cvs -z3 -d :pserver:anoncvs at sources dot redhat dot com:/cvs/ecos co -P ecos
I think it is the lastest.
In fact, I couldn't see other version of if_fec.c in its log.
----- Original Message -----
From: Gary D. Thomas
To: he_hai_yang
Cc: eCos Discussion
Sent: Sunday, March 02, 2003 8:22 PM
Subject: Re: [ECOS] bug about MPC8260 FEC driver?
On Sat, 2003-03-01 at 22:54, he_hai_yang wrote:
> 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.
>
What version of the code are you referring to? I made major
changes in how the data cache is handled in this driver a
long time ago (back in October, 2002).
Try updating to the latest CVS and see if you still have problems.