Mercurial > ecos
changeset 1969:161f7ed272df
* src/alias.c (lookup_alias): The expansion of FREEMEMLO and
FREEMEMHI needs a leading '0x' so they're recognized as hex
| author | asl |
|---|---|
| date | Fri, 06 May 2005 12:04:57 +0000 |
| parents | 7ddd5ba45ee5 |
| children | 9052ed879926 |
| files | packages/redboot/current/ChangeLog packages/redboot/current/src/alias.c |
| diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/redboot/current/ChangeLog +++ b/packages/redboot/current/ChangeLog @@ -1,3 +1,8 @@ +2005-05-04 David Vrabel <dvrabel@arcom.com> + + * src/alias.c (lookup_alias): The expansion of FREEMEMLO and + FREEMEMHI needs a leading '0x' so they're recognized as hex. + 2005-04-21 Ian Campbell <icampbell@arcom.com> * src/net/net_io.c (net_init): Don't initialize the network if we
--- a/packages/redboot/current/src/alias.c +++ b/packages/redboot/current/src/alias.c @@ -69,10 +69,10 @@ static char * lookup_alias(char *alias, char *alias_buf) { if (0 == strcasecmp("FREEMEMLO", alias)) { - diag_sprintf(alias_buf,"%x", ((CYG_ADDRWORD)mem_segments[0].start + 0x03ff) & ~0x03ff); + diag_sprintf(alias_buf,"0x%x", ((CYG_ADDRWORD)mem_segments[0].start + 0x03ff) & ~0x03ff); return alias_buf; } else if (0 == strcasecmp("FREEMEMHI", alias)) { - diag_sprintf(alias_buf,"%x", ((CYG_ADDRWORD)mem_segments[0].end) & ~0x03ff); + diag_sprintf(alias_buf,"0x%x", ((CYG_ADDRWORD)mem_segments[0].end) & ~0x03ff); return alias_buf; }
