Mercurial > ecos
diff packages/devs/flash/mips/atlas/current/src/flash_erase_block.c @ 1237:5acac6d0cccc
* cdl/flash_atlas.cdl: Added requirements for strncmp.
* cdl/flash_atlas.cdl:
* src/flash_lock_block.c (flash_lock_block):
* src/flash_unlock_block.c (flash_unlock_block):
* src/flash_erase_block.c (flash_erase_block):
* src/flash_query.c (flash_query):
* src/flash_program_buf.c (flash_program_buf): Use .2ram sections
for putting flash functions to RAM instead of the old method. Use
generic flash_dev_query
| author | asl |
|---|---|
| date | Tue, 23 Sep 2003 09:50:17 +0000 |
| parents | d2c90368aeef |
| children | 74dbf4c3f2e1 |
line wrap: on
line diff
--- a/packages/devs/flash/mips/atlas/current/src/flash_erase_block.c +++ b/packages/devs/flash/mips/atlas/current/src/flash_erase_block.c @@ -56,12 +56,10 @@ #include <cyg/hal/hal_arch.h> #include <cyg/hal/hal_cache.h> -// -// CAUTION! This code must be copied to RAM before execution. Therefore, -// it must not contain any code which might be position dependent! -// int flash_erase_block(volatile unsigned long *block) + __attribute__ ((section (".2ram.flash_erase_block"))); +int flash_erase_block(volatile unsigned long *block) { volatile unsigned long *ROM; unsigned long stat;
