This is the mail archive of the ecos-patches@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]

RedBoot: fis free: don't ignore chunk at start.


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;

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