Re: Need help in figuring out how to allocate sizes to the array

2020-08-13 Thread Richi Dubey
Great explanation. I feel stupid to miss this :p. Thanks! On Thu, Aug 13, 2020 at 9:40 PM Gedare Bloom wrote: > On Thu, Aug 13, 2020 at 9:28 AM Richi Dubey wrote: > > > > Thanks, > > > > But I still can't find the code that links the 'Ready' in this > > > > >> #define RTEMS_SCHEDULER_EDF_SMP(

Re: Need help in figuring out how to allocate sizes to the array

2020-08-13 Thread Gedare Bloom
Resending without some stray words On Thu, Aug 13, 2020 at 10:10 AM Gedare Bloom wrote: > > On Thu, Aug 13, 2020 at 9:28 AM Richi Dubey wrote: > > > > Thanks, > > > > But I still can't find the code that links the 'Ready' in this > > > > >> #define RTEMS_SCHEDULER_EDF_SMP( name ) \ > > >>

Re: Need help in figuring out how to allocate sizes to the array

2020-08-13 Thread Gedare Bloom
On Thu, Aug 13, 2020 at 9:28 AM Richi Dubey wrote: > > Thanks, > > But I still can't find the code that links the 'Ready' in this > > >> #define RTEMS_SCHEDULER_EDF_SMP( name ) \ > >> static struct { \ > >>Scheduler_EDF_SMP_Context Base; \ This 'Base' will be an instance of the struc

Re: Need help in figuring out how to allocate sizes to the array

2020-08-13 Thread Richi Dubey
Thanks, But I still can't find the code that links the 'Ready' in this >> #define RTEMS_SCHEDULER_EDF_SMP( name ) \ >> static struct { \ >>Scheduler_EDF_SMP_Context Base; \ >>Scheduler_EDF_SMP_Ready_queue Ready[ CONFIGURE_MAXIMUM_PROCESSORS >> + 1 ]; \ to the 'Ready' in sch

Re: Need help in figuring out how to allocate sizes to the array

2020-08-13 Thread Gedare Bloom
On Thu, Aug 13, 2020 at 8:34 AM Richi Dubey wrote: > > Thanks, > I am assuming this is the code that allocates space: > >> #define RTEMS_SCHEDULER_EDF_SMP( name ) \ >> static struct { \ >>Scheduler_EDF_SMP_Context Base; \ >>Scheduler_EDF_SMP_Ready_queue Ready[ CONFIGURE_MAXI

Re: Need help in figuring out how to allocate sizes to the array

2020-08-13 Thread Richi Dubey
Thanks, I am assuming this is the code that allocates space: #define RTEMS_SCHEDULER_EDF_SMP( name ) \ > static struct { \ >Scheduler_EDF_SMP_Context Base; \ >Scheduler_EDF_SMP_Ready_queue Ready[ CONFIGURE_MAXIMUM_PROCESSORS > + 1 ]; \ > } SCHEDULER_EDF_SMP_CONTEXT_NAME

Re: Need help in figuring out how to allocate sizes to the array

2020-08-13 Thread Sebastian Huber
On 13/08/2020 14:42, Richi Dubey wrote: I want to use arrays with size _CONFIGURE_MAXIMUM_PROCESSORS. Is it okay if I define the arrays with this size while writing the scheduler strong APA header file? I am asking this because the value of this header gets defined at the time the test case runs