This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: RedBoot: fis free: don't ignore chunk at start.
- From: Andrew Lunn <andrew at lunn dot ch>
- To: David Vrabel <dvrabel at arcom dot com>
- Cc: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Mon, 25 Oct 2004 23:11:50 +0200
- Subject: Re: RedBoot: fis free: don't ignore chunk at start.
- References: <417D3062.9000200@arcom.com>
On Mon, Oct 25, 2004 at 05:57:06PM +0100, David Vrabel wrote:
> 2004-10-25 David Vrabel <dvrabel@arcom.com>
>
> * src/flash.c (find_free): Don't ignore an extra
> CYGBLD_REDBOOT_MIN_IMAGE_SIZE amount from the start. This fixes
> the case where nothing uses the start of flash.
>
> --
> David Vrabel, Design Engineer
>
> Arcom, Clifton Road Tel: +44 (0)1223 411200 ext. 3233
> Cambridge CB1 7EA, UK Web: http://www.arcom.com/
> Index: redboot/current/src/flash.c
> ===================================================================
> RCS file: /var/cvs/ecos/packages/redboot/current/src/flash.c,v
> retrieving revision 1.24
> retrieving revision 1.25
> diff -u -B -p -r1.24 -r1.25
> --- redboot/current/src/flash.c 20 Oct 2004 11:50:39 -0000 1.24
> +++ redboot/current/src/flash.c 25 Oct 2004 17:01:43 -0000 1.25
> @@ -530,7 +530,7 @@ find_free(struct free_chunk *chunks)
> int num_chunks = 1;
>
> // Do not search the area reserved for pre-RedBoot systems:
> - fis_ptr = CYGNUM_REDBOOT_FLASH_RESERVED_BASE + CYGBLD_REDBOOT_MIN_IMAGE_SIZE;
> + fis_ptr = CYGNUM_REDBOOT_FLASH_RESERVED_BASE;
> fis_end = flash_size;
> chunks[num_chunks-1].start = (CYG_ADDRESS)fis_ptr;
> chunks[num_chunks-1].end = (CYG_ADDRESS)fis_end;
Could you please give us a patch relative to current anoncvs. There
has been changes in this section of code.
Thanks
Andrew