This is the mail archive of the ecos-discuss@sourceware.org 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: how to implement EDF scheduling in eCos


Hi Nodir

Nodir Kodirov wrote:

> I tried various ways to overcome, but, still couldn't solve the problem.
> 
> But, interesting thing to tell is that, always I am having the same
> value for the first (thread_edf_info->deadline) field of the
> *thread_edf_info* structure. E.g. when I am tracing it via:
>> CYG_TRACE1(1, "edf_info->deadline = %d", edf_info->deadline);
> It always outputs me value *edf_info->deadline=16688624*
> 
> But for the other two fields I have *edf_info->wcet = 15304688* and
> *edf_info->period = 15691760*.
> Maybe it can help to have you some idea, about what is going inside...

Try moving "edf_info" to be immediately following "priority" in
CYG_SCHEDTHREAD_SCHEDIMP_MEMBERS so that the ordering of members in
cyg_thread match the ordering in the Cyg_Thread class.

I hope this helps...

John Dallaway
eCos maintiner

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


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