Mercurial > ecos
diff packages/devs/flash/intel/strata/current/src/flash_unlock_block.c @ 1209:b33e882f6b64
Use .2ram strategy - from Jani Monoses
| author | gthomas |
|---|---|
| date | Wed, 10 Sep 2003 20:52:52 +0000 |
| parents | 59e96106029e |
| children | 4abdcd2f65a9 |
line wrap: on
line diff
--- a/packages/devs/flash/intel/strata/current/src/flash_unlock_block.c +++ b/packages/devs/flash/intel/strata/current/src/flash_unlock_block.c @@ -54,11 +54,6 @@ // -// CAUTION! This code must be copied to RAM before execution. Therefore, -// it must not contain any code which might be position dependent! -// - -// // The difficulty with this operation is that the hardware does not support // unlocking single blocks. However, the logical layer would like this to // be the case, so this routine emulates it. The hardware can clear all of @@ -70,6 +65,9 @@ int flash_unlock_block(volatile flash_t *block, int block_size, int blocks) + __attribute__ ((section (".2ram.flash_unlock_block"))); +int +flash_unlock_block(volatile flash_t *block, int block_size, int blocks) { volatile flash_t *ROM; flash_t stat;
