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]

Re: Enabling the Cache on powerpc


----- Original Message ----- 
From: "Jonathan Larmour" <jlarmour@redhat.com>
To: "N.Suresh" <nsuresh@cdotb.ernet.in>
> "N.Suresh" wrote:
> > 
> > Hi,
> >     If i see the code of MBX860, it seems that the cache is disabled.
> >     I am trying to enable the caches on 603e, i am able to execute the
> > hello world program, but
> >     networking is not working.

Well, I did enable the caches on MPC860 and networking also worked fine
after I had changed a line in the code.
- network rx side : CACHE_INVALIDATE(....);                           /*  -- no need to change -- */
- network tx side : CACHE_INVALIDATE(....); -> CACHE_FLUSH(....);  /* i modified this */
( Normally before the tx-part of the cpu core sends some packets by the SDMA,
all data and desc contents must be in the ram not in the cache. So, flushing is needed.)

I can't tell you the file name of the above, I already uninstalled all the eCos project now.
Sorry..

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