Mercurial > ecos
changeset 254:8f06eb89a9e3
Force FLASH access routines to run from RAM.
| author | gthomas |
|---|---|
| date | Tue, 30 Jul 2002 03:41:12 +0000 |
| parents | d364b93024e5 |
| children | 21264951b120 |
| files | packages/devs/flash/amd/am29xxxxx/current/ChangeLog packages/devs/flash/amd/am29xxxxx/current/include/flash_am29xxxxx.inl |
| diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/devs/flash/amd/am29xxxxx/current/ChangeLog +++ b/packages/devs/flash/amd/am29xxxxx/current/ChangeLog @@ -1,3 +1,9 @@ +2002-07-29 Gary Thomas <gary@chez-thomas.org> +2002-07-29 Motoya Kurotsu <kurotsu@allied-telesis.co.jp> + + * include/flash_am29xxxxx.inl: Force routines which actually use + the FLASH to run from RAM. + 2002-07-24 Gary Thomas <gary@chez-thomas.org> 2002-07-24 Motoya Kurotsu <kurotsu@allied-telesis.co.jp>
--- a/packages/devs/flash/amd/am29xxxxx/current/include/flash_am29xxxxx.inl +++ b/packages/devs/flash/amd/am29xxxxx/current/include/flash_am29xxxxx.inl @@ -154,6 +154,11 @@ int flash_erase_block(void* block, unsi __attribute__ ((section (".2ram.flash_erase_block"))); int flash_program_buf(void* addr, void* data, int len) __attribute__ ((section (".2ram.flash_program_buf"))); +static void _flash_query(void* data) __attribute__ ((section (".2ram._flash_query"))); +static int _flash_erase_block(void* block, unsigned int size) + __attribute__ ((section (".2ram._flash_erase_block"))); +static int _flash_program_buf(void* addr, void* data, int len) + __attribute__ ((section (".2ram._flash_program_buf"))); //---------------------------------------------------------------------------- // Flash Query
