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]

V2 flash - minor RedBoot patch


The flash info now already holds the last byte, so subtracting another
byte made everything misaligned.

Bart

Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.199.2.6
diff -u -r1.199.2.6 ChangeLog
--- ChangeLog	7 Oct 2004 08:13:49 -0000	1.199.2.6
+++ ChangeLog	20 Nov 2004 18:18:05 -0000
@@ -1,3 +1,8 @@
+2004-11-20  Bart Veer  <bartv@ecoscentric.com>
+
+	* src/flash.c (do_flash_init): info.end already holds the last
+	flash byte, no need to adjust.
+
 2004-10-07  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* src/flash.c (do_flash_init): Fix compiler warning about an
Index: src/flash.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/flash.c,v
retrieving revision 1.67.2.5
diff -u -r1.67.2.5 flash.c
--- src/flash.c	7 Oct 2004 08:13:50 -0000	1.67.2.5
+++ src/flash.c	20 Nov 2004 18:18:11 -0000
@@ -1397,7 +1397,7 @@
              return false;
         }
         flash_start = info.start;
-        flash_end = info.end -1;
+        flash_end = info.end;
 
         // No bootblock support yet, so we merge any bootblocks we might
         // find into full size blocks


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