This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: scheduling on eCos (with synthetic)
Hi,
I read context.S and I modify on the stack the value of HAL_SavedRegisters
structure saved during the context switch.
It almost work. :D
Thanks for reply.
jjp
----------------------------------------
> Date: Tue, 3 Jun 2008 11:26:39 +0100
> From: bartv@ecoscentric.com
> To: jackoaway@hotmail.com
> CC: ecos-discuss@ecos.sourceware.org
> Subject: Re: [ECOS] scheduling on eCos (with synthetic)
>
>>>>>> "jjp" == trollepi jj writes:
>
> jjp> I'm working on the synthetic target (Fedora core 8) and I
> jjp> create a program that have 2 threads (A and B). In thread A I
> jjp> try to modify the execution flow of thread B (e.g. to
> jjp> simulate a signal without cyg_hal_sys_[ kill | procmask
> jjp> |...]) and I have several questions :
>
> jjp> 1) Where eCos scheduler (on the synthetic target) store saved
> jjp> data of threads that are not currently runnning?
>
> jjp> 2) Is it possible to get those informations with kapi?
> jjp> Thanks for your future reply.
>
> 1) in this area the synthetic target is no different from any other
> target.
>
> 2) there is no kernel API for this. The closest you can get is to
> enable CYGVAR_KERNEL_THREADS_LIST and then use the C++ functions
> Cyg_Thread::get_list_head() and Cyg_Thread::get_list_next(). You
> can then access the thread objects directly, but you will need to
> look at the kernel headers and sources to make sense of it all. Be
> aware that the kernel internals may change at any time.
>
> Bart
>
> --
> Bart Veer eCos Configuration Architect
> eCosCentric Limited The eCos experts http://www.ecoscentric.com/
> Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
> Registered in England and Wales: Reg No 4422071.
>
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
_________________________________________________________________
Sur Windows Live Ideas, découvrez en exclusivité de nouveaux services en ligne... si nouveaux qu'ils ne sont pas encore sortis officiellement sur le marché !
http://ideas.live.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss