This is the mail archive of the ecos-patches@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]

MPC8260 cache patch


This one is probably for you, Gary.

I ran into a problem wherein the data cache was not being properly synced
prior to being invalidated (somewhere in one of the FLASH routines --
'flash_dev_query()', to be a little more precise).  I tracked it down to the
fact that the 'HAL_DCACHE_SYNC()' macro syncs the cache to memory by loading
in the first 16 kBytes.  But, if there are dirty cache lines in those first
16 kBytes, they do not get written back out to main memory.  My simple fix
is to double the region scanned from 16 kBytes to 32 kBytes.  I would be
glad to accept an alternative solution.

Also, since Paul's ChangeLog entry says that he stole this from the PPC 60x
HAL, you might want to consider changing that HAL (and perhaps others -- is
this a good time to mention that I HATE CUTTING AND PASTING CODE!!!) as
well.

--wpd

Attachment: cache2.txt
Description: Text document


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