public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] [PATCH] Make redundant FIS build
@ 2006-07-21 12:11 David Ho
  2006-07-21 13:57 ` Gary Thomas
  0 siblings, 1 reply; 2+ messages in thread
From: David Ho @ 2006-07-21 12:11 UTC (permalink / raw)
  To: ecos-discuss

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

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] [PATCH] Make redundant FIS build
  2006-07-21 12:11 [ECOS] [PATCH] Make redundant FIS build David Ho
@ 2006-07-21 13:57 ` Gary Thomas
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2006-07-21 13:57 UTC (permalink / raw)
  To: David Ho; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-21 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-21 12:11 [ECOS] [PATCH] Make redundant FIS build David Ho
2006-07-21 13:57 ` Gary Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).