# HG changeset patch # User gthomas # Date 1028000472 0 # Node ID 8f06eb89a9e385d9c6180c75f01149088b5fe35c # Parent d364b93024e5ba12a2ad7099453d616b98e74418 Force FLASH access routines to run from RAM. diff --git a/packages/devs/flash/amd/am29xxxxx/current/ChangeLog b/packages/devs/flash/amd/am29xxxxx/current/ChangeLog --- 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 +2002-07-29 Motoya Kurotsu + + * include/flash_am29xxxxx.inl: Force routines which actually use + the FLASH to run from RAM. + 2002-07-24 Gary Thomas 2002-07-24 Motoya Kurotsu diff --git a/packages/devs/flash/amd/am29xxxxx/current/include/flash_am29xxxxx.inl b/packages/devs/flash/amd/am29xxxxx/current/include/flash_am29xxxxx.inl --- 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