[ECOS] RedBoot: Use workspace memory section if defined (was: RedBoot: Loading files from JFFS2 problem)

David Vrabel dvrabel@arcom.com
Wed Mar 10 17:54:00 GMT 2004


David Vrabel wrote:
> Would two regions/heaps (?) be the solution?  One as an actual heap and 
> one where RedBoot can load images too?

Done this now.  I added a 2nd workspace memory section and made RedBoot 
use that as its workspace.  Seems to work fine.

Attached is the simple patch I made to RedBoot to get it to use the 
workspace memory region.

2004-03-10  David Vrabel  <dvrabel@arcom.com>

	* src/main.c (cyg_start): Use the workspace memory section
	(CYGMEM_SECTION_workspace) as the workspace if it is defined.
	This prevents the user from trampling over the heap1 section.

David Vrabel
-- 
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: redboot-use-workspace-mem-region.patch
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20040310/34d01ac8/attachment.ksh>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list