This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Saving application state
sandeep <sandeep@codito.com> said:
> what exactly you are looking for? what hardware/setup? issues would be
different
> from single to multiprocessor system. I consider you are on a single processor
> system.
>
> you are possibly looking for something akin to hibernation support of
> Windows/Linux. you probably want to shut down the system? or looking for taking
> off this multi-threaded application completely w/o shutting the sytem down and
> loading another app? or are you looking for something like wake-on-lan (i don't
> know more than a layman about this).
>
> a guess, is it something to do with your MS project work? ;)
I am targeting a uniprocessor system. The ecos is operating on intel 80200
xscale processor ADI board. I intend to load the application and OS image and
keep saving application state at regular intervals. Initially I do not indend
to shut down the system, the kernel and application continue execution however
at a some arbitarary time I want the application to go back to the saved state.
So i am interested in knowing the address space of entire application. Where
are dynamic objects saved.
>
> > I am interested in saving the state of an application(mutithreaded) , so that
> > it can be started at a later time from a point where its state was last saved.
> > I understand I'll have save state of all threads in application. Which will
> > basically be each threads stack. Can I use HAL_Savedregisters which is used
> > in context switching for this, or is using setjmp()/ long jmp better.
> HAL_SavedRegisters would save only the registers participating in context
> switching. that may not be (and almost all the h/w ecos is on, it won't be)
> saving all the registers.
>
> setjmp/longjmp won't solving your problems.
>
> > Also I am confused where exactly are global variables of application stored
> > and how do store heap .
>
> If you are looking at only not-running this application of yours but system is
> up and running all the while, you have lots of memory to load other apps, then
> the problem is far more simpler.
>
> Unless your requirements/problem specification is bit clear, people might
not be
> able to help you.
>
> good luck.
> --------------------------------------------------------------------------
> A real patriot is the fellow who gets a parking ticket and rejoices
> that the system works.
> --------------------------------------------------------------------------
>
--
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss