This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]