This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Enabling the Cache on powerpc
- From: "hysyscomm" <syyi04 at kg21 dot net>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 3 Dec 2001 14:15:12 +0900
- Subject: Re: [ECOS] Enabling the Cache on powerpc
- References: <3C077405.2070609@cdotb.ernet.in> <3C08334B.BD68FA11@redhat.com>
----- 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..