This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
How to deal with data cache in flash routines?
- From: Grant Edwards <grante at visi dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Tue, 2 Dec 2008 22:17:22 +0000 (UTC)
- Subject: 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??