This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
RedBoot: Expand FREEMEMLO (etc) even if FLASH_ALIASES is disabled.
- From: David Vrabel <dvrabel at arcom dot com>
- To: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Fri, 27 May 2005 14:56:15 +0100
- Subject: RedBoot: Expand FREEMEMLO (etc) even if FLASH_ALIASES is disabled.
Hi,
The attached RedBoot patch enables the expansion of FREEMEMLO (and other
hard coded aliases) even if CYGSEM_REDBOOT_FLASH_ALIASES is not enabled.
David Vrabel
--
David Vrabel, Design Engineer
Arcom, Clifton Road Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK Web: http://www.arcom.com/
%status
pending
%patch
Index: ecos-working/packages/redboot/current/src/main.c
===================================================================
--- ecos-working.orig/packages/redboot/current/src/main.c 2005-05-27 14:44:36.000000000 +0100
+++ ecos-working/packages/redboot/current/src/main.c 2005-05-27 14:45:10.000000000 +0100
@@ -411,9 +411,7 @@
} else
#endif // CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
{
-#ifdef CYGSEM_REDBOOT_FLASH_ALIASES
expand_aliases(line, sizeof(line));
-#endif
command = (char *)&line;
if ((*command == '#') || (*command == '=')) {
// Special cases
Index: ecos-working/packages/redboot/current/ChangeLog
===================================================================
--- ecos-working.orig/packages/redboot/current/ChangeLog 2005-05-20 12:04:50.000000000 +0100
+++ ecos-working/packages/redboot/current/ChangeLog 2005-05-27 14:50:14.000000000 +0100
@@ -1,3 +1,9 @@
+2005-05-27 David Vrabel <dvrabel@arcom.com>
+
+ * src/main.c (cyg_start): Expand aliases even if
+ CYGSEM_REDBOOT_FLASH_ALIASES is not enabled since there are some
+ hardcoded aliases (e.g., FREEMEMLO).
+
2005-05-04 David Vrabel <dvrabel@arcom.com>
* src/alias.c (lookup_alias): The expansion of FREEMEMLO and