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]

Re: jffs2 garbage collection


> Another question, if my multithreaded application
> is running from flash, do I have to lock/unlock the
> scheduler before and after writing data to a file,
> if the application code and the file system share
> the same physical flash chip? This would of course
> be unacceptable, given the time it takes to erase a
> sector.

Interrupts have to he disabled and scheduling locked. Otherwise you
risk a crash while the flash is in programming mode. There isn't
really any choice about it when your application is running from
flash. If you cannot live with this, you need your application to run
from RAM.

You the application programs should not have to deal with this
IMHO. The underlying flash drivers should sort this out. This has been
talked about before on the list, but i don't remember the outcome. ie
does the locking actually happen automatically.

     Andrew

-- 
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]