This is the mail archive of the ecos-patches@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]

RE: RFC - fix to at49xxxx crash during erase/program when interrupt happens


> 
> >This would allow interrupts 
> >to continue while erasing flash blocks, if the 
> >entire work is done in those handlers and no 
> >threads are involved. This is still a severe limitation.
> 
> I'm a bit confused, are you saying that flash programming
> is incompatible with multithreading?
> 

No, I meant to say that the code executed by your threads
would still reside in flash and hence no threads can run
while the flash is being programmed. It is very common,
and generally desirable, to have the interrupt handlers
do as little work as possible, and to delegate as much as
possible to a thread they notify.

tk

----------------------------------------------- 
Thomas Koeller, Software Development 

Basler Vision Technologies 
An der Strusbek 60-62 
22926 Ahrensburg 
Germany 

Tel +49 (4102) 463-390 
Fax +49 (4102) 463-46390

mailto:Thomas.Koeller@baslerweb.com 
http://www.baslerweb.com 



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