This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Flash Support in eCos
- To: "RAY Electronic-Design GmbH" <info at raygmbh dot de>
- Subject: Re: [ECOS] Flash Support in eCos
- From: Jesper Skov <jskov at redhat dot com>
- Date: 08 Aug 2001 10:57:43 +0200
- Cc: <ecos-discuss at sources dot redhat dot com>
- References: <006e01c11fa2$7e6d9b80$fe78a8c0@raypc2>
>>>>> "RAY" == RAY Electronic-Design GmbH <info@raygmbh.de> writes:
RAY> As i wanted to port the flash support in eCos i came to the
RAY> following: In most platforms for which this is already
RAY> implemented (e.g.: EDB7XXX) there is one function per c-file
RAY> specially compiled to get it's length and copy it to ram before
RAY> calling it, because if the function is executing out of the
RAY> flash, it will not work.
Look at the AMD driver - it relies on the IO flash driver to disable
the cache before the functions (which reside in RAM) are called. You
probably have to add a .2ram section in the linker script - see the
linker scripts in the SH HAL for an example.
Jesper