This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: RedBoot: Use workspace memory section if defined (was:RedBoot: Loading files from JFFS2 problem)
- From: Jani Monoses <jani at iv dot ro>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 10 Mar 2004 20:06:55 +0200
- Subject: Re: [ECOS] RedBoot: Use workspace memory section if defined (was:RedBoot: Loading files from JFFS2 problem)
- References: <404F218B.4000405@arcom.com><404F564F.2030101@arcom.com>
Is workspace_size used at all?
I only see it is assigned but not used.
> 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/
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss