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

How to deal with data cache in flash routines?


I'm using the standard strata flash driver on an Altera NIOS2
platform, and everything worked fine until I enabled the data
cache in my processor configuration. Now none of the flash
routines work.

HAL_DCACHE_DISABLE() does nothing since there's no way to
disable the cache in the NIOS2 processor.  However, the cache
can be bypassed by setting bit 31 in the address used to access
the memory.

After browsing through the sources, it looks line one tells the
flash routines to do that by defining FLASH_P2V()?  If so, do I
do that in my strata.inl file for the target?

-- 
Grant Edwards                   grante             Yow! How many retured
                                  at               bricklayers from FLORIDA
                               visi.com            are out purchasing PENCIL
                                                   SHARPENERS right NOW??


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