This is the mail archive of the ecos-discuss@sourceware.org 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: [PATCH] Make redundant FIS build


David Ho wrote:
Simple patch to fix a build error.

Signed-off-by: David Ho <davidkwho@gmail.com>
---

diff --git a/packages/redboot/current/src/flash.c
b/packages/redboot/current/src/fl
index e8c6e5d..49bc0ad 100644
--- a/packages/redboot/current/src/flash.c
+++ b/packages/redboot/current/src/flash.c
@@ -273,8 +273,10 @@ #endif
   img->u.valid_info.version_count=img->u.valid_info.version_count+1;

   //ready to go....
+#ifdef CYGHWR_IO_FLASH_BLOCK_LOCKING
   if (do_autolock)
      flash_unlock((void *)fis_addr, fisdir_size, (void **)&err_addr);
+#endif

   flash_erase(fis_addr, fisdir_size, (void **)&err_addr);
   //now magic is 0xffffffff


Applied [with slight modifications], thanks.


Next time, please send to ecos-patches@ecos.sourceware.org.  Also
include a ChangeLog entry so we don't have to fabricate one.

--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

--
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]