This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

_flash_xxx() in flash_am29xxxxx.inl


Hi all,

I guess that the reason why three functions of flash_query, 
flash_erase_block and flash_program_buf should be placed in ram is 
that the execution of those codes might overwrite themselves. 
If my guess is correct, I think that _flash_query, _flash_erase_block and 
_flash_program_buf should be also put in ram by the same reason.

Thanks,
Motoya Kurotsu
Allied Telesis K.K.

======================= patch =========================
 
--- flash_am29xxxxx.inl.orig	Thu Jul 25 12:01:52 2002
+++ flash_am29xxxxx.inl	Mon Jul 29 14:23:07 2002
@@ -154,6 +154,11 @@
     __attribute__ ((section (".2ram.flash_erase_block")));
 int  flash_program_buf(void* addr, void* data, int len)
     __attribute__ ((section (".2ram.flash_program_buf")));
+void _flash_query(void* data) __attribute__ ((section (".2ram._flash_query")));
+int  _flash_erase_block(void* block, unsigned int size) 
+    __attribute__ ((section (".2ram._flash_erase_block")));
+int  _flash_program_buf(void* addr, void* data, int len)
+    __attribute__ ((section (".2ram._flash_program_buf")));
 
 //----------------------------------------------------------------------------
 // Flash Query

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]