This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Dealing with cache in flash drivers
- From: Grant Edwards <grante at visi dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 2 Dec 2008 22:29:55 +0000 (UTC)
- Subject: [ECOS] Dealing with cache in flash drivers
[I accidentally sent this in the patches list previously.]
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??
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss