public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] RedBoot FIS question
@ 2001-09-12  3:21 Joerg Rapka
  2001-09-12 10:53 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Joerg Rapka @ 2001-09-12  3:21 UTC (permalink / raw)
  To: ecos-discuss

If the option CYGOPT_REDBOOT_FIS is not set, then still space of RAM are
occupied for the FIS (fis_work_block, fisdir_size).
In this case, I think so this is not necessary. The RAM workspace of RedBoot
(workspace_end) is also reduced by the size for the FIS.

See code extract from function "do_flash_init" in file
"/packages/redboot/current/src/flash.c":
   ...
    fis_work_block = (unsigned char
*)(workspace_end-FLASH_MIN_WORKSPACE-block_size);
    workspace_end = fis_work_block;
    fisdir_size = block_size;
   ...

A solution could be:
   ...
    #ifdef CYGOPT_REDBOOT_FIS
        fis_work_block = (unsigned char
*)(workspace_end-FLASH_MIN_WORKSPACE-block_size);
        workspace_end = fis_work_block;
        fisdir_size = block_size;
    #else
        workspace_end = (unsigned char
*)(workspace_end-FLASH_MIN_WORKSPACE);
        fis_work_block = NULL;
        fisdir_size = 0;
    #endif // CYGOPT_REDBOOT_FIS
   ...

NOTE: The both FIS-variables "fis_work_block" and "fisdir_size" are not
necessary at all, if option "CYGOPT_REDBOOT_FIS" is not  set.


Best regards,
Joerg Rapka
Duagon GmbH


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

* Re: [ECOS] RedBoot FIS question
  2001-09-12  3:21 [ECOS] RedBoot FIS question Joerg Rapka
@ 2001-09-12 10:53 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-09-12 10:53 UTC (permalink / raw)
  To: Joerg Rapka; +Cc: ecos-discuss

Joerg Rapka wrote:
> 
> If the option CYGOPT_REDBOOT_FIS is not set, then still space of RAM are
> occupied for the FIS (fis_work_block, fisdir_size).
> In this case, I think so this is not necessary. The RAM workspace of RedBoot
> (workspace_end) is also reduced by the size for the FIS.

I've done something similar in our sources for this. You'll see it in the
next update.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

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

end of thread, other threads:[~2001-09-12 10:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-12  3:21 [ECOS] RedBoot FIS question Joerg Rapka
2001-09-12 10:53 ` Jonathan Larmour

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).