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: Number of Scheduler Priority Level -


On Tue, May 01, 2007 at 12:11:24AM +0530, Alok Singh wrote:
> Hi, 
>     I'm using latest eCos Code base. By default, the number of priority
> levels used by eCos is 32(1- 32). I tried to change it to some bigger
> number(say 64)by configuring the option CYGNUM_KERNEL_SCHED_PRIORITIES.
> But it throws a conflict saying that 64 is not a legal value. Does it
> mean that this option is un-usable as of now, and we have to use the
> default priority levels only?

packages/kernel/current/include/mlqueue.hxx says:

// -------------------------------------------------------------------------
// The macro CYGNUM_KERNEL_SCHED_BITMAP_SIZE contains the number of bits that the
// scheduler bitmap should contain. It is derived from the number of prioirity
// levels defined by the configuration.

#if CYGNUM_KERNEL_SCHED_BITMAP_SIZE <= 8
typedef cyg_ucount8 cyg_sched_bitmap;
#elif CYGNUM_KERNEL_SCHED_BITMAP_SIZE <= 16
typedef cyg_ucount16 cyg_sched_bitmap;
#elif CYGNUM_KERNEL_SCHED_BITMAP_SIZE <= 32
typedef cyg_ucount32 cyg_sched_bitmap;
#else
#error Bitmaps greater than 32 bits not currently allowed
#endif

You might be able to extend this to 64 using cyg_ucount64.

    Andrew

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