Mercurial > ecos
diff packages/redboot/current/src/flash.c @ 2423:82aabda670f8
Fix memory allocation for FLASH/FIS - could have been wrong if some other function allocated memory first
| author | gthomas |
|---|---|
| date | Tue, 28 Aug 2007 10:59:52 +0000 |
| parents | a21e68455afd |
| children | 13376f3cfc60 |
line wrap: on
line diff
--- a/packages/redboot/current/src/flash.c +++ b/packages/redboot/current/src/flash.c @@ -1600,7 +1600,7 @@ do_flash_init(void) return -1; } # else - workspace_end = (unsigned char *)(workspace_end_init-fisdir_size); + workspace_end = (unsigned char *)(workspace_end-fisdir_size); fis_work_block = workspace_end; # endif if (CYGNUM_REDBOOT_FIS_DIRECTORY_BLOCK < 0) {
