Re: [PATCH] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-17 Thread Chris Johns
On 17/8/20 2:57 pm, Niteesh G. S. wrote: > On Mon, Aug 17, 2020 at 3:49 AM Chris Johns > wrote: > > On 16/8/20 11:19 pm, Niteesh G. S. wrote: > > > > On Sun, Aug 16, 2020 at 2:25 PM Chris Johns > >

Re: Context switching through an ISR in RTEMS

2020-08-17 Thread Gedare Bloom
On Mon, Aug 17, 2020 at 11:56 AM Utkarsh Rai wrote: > > > > On Mon, Aug 17, 2020 at 10:12 PM Gedare Bloom wrote: >> >> On Mon, Aug 17, 2020 at 10:30 AM Utkarsh Rai wrote: >> > >> > >> > >> > On Mon, Aug 17, 2020 at 9:24 PM Gedare Bloom wrote: >> >> >> >> On Mon, Aug 17, 2020 at 5:53 AM Utkarsh

Re: Context switching through an ISR in RTEMS

2020-08-17 Thread Utkarsh Rai
On Mon, Aug 17, 2020 at 10:12 PM Gedare Bloom wrote: > On Mon, Aug 17, 2020 at 10:30 AM Utkarsh Rai > wrote: > > > > > > > > On Mon, Aug 17, 2020 at 9:24 PM Gedare Bloom wrote: > >> > >> On Mon, Aug 17, 2020 at 5:53 AM Utkarsh Rai > wrote: > >> > > >> > > >> > > >> > On Mon, Aug 17, 2020 at 11

Re: Context switching through an ISR in RTEMS

2020-08-17 Thread Gedare Bloom
On Mon, Aug 17, 2020 at 10:30 AM Utkarsh Rai wrote: > > > > On Mon, Aug 17, 2020 at 9:24 PM Gedare Bloom wrote: >> >> On Mon, Aug 17, 2020 at 5:53 AM Utkarsh Rai wrote: >> > >> > >> > >> > On Mon, Aug 17, 2020 at 11:32 AM Sebastian Huber >> > wrote: >> >> >> >> On 16/08/2020 18:09, Utkarsh Rai

Re: Context switching through an ISR in RTEMS

2020-08-17 Thread Utkarsh Rai
On Mon, Aug 17, 2020 at 9:24 PM Gedare Bloom wrote: > On Mon, Aug 17, 2020 at 5:53 AM Utkarsh Rai > wrote: > > > > > > > > On Mon, Aug 17, 2020 at 11:32 AM Sebastian Huber < > sebastian.hu...@embedded-brains.de> wrote: > >> > >> On 16/08/2020 18:09, Utkarsh Rai wrote: > >> > >> > > >> > > >> > O

Re: Context switching through an ISR in RTEMS

2020-08-17 Thread Gedare Bloom
On Mon, Aug 17, 2020 at 5:53 AM Utkarsh Rai wrote: > > > > On Mon, Aug 17, 2020 at 11:32 AM Sebastian Huber > wrote: >> >> On 16/08/2020 18:09, Utkarsh Rai wrote: >> >> > >> > >> > On Sun, Aug 16, 2020 at 9:18 PM Gedare Bloom > > > wrote: >> > >> > On Sat, Aug 15, 20

Node vs Threads in scheduling

2020-08-17 Thread Richi Dubey
Hi, How does the scheduling state of a thread differ from that of its corresponding node in a scheduler? How does thread helping work? Since a thread only has one node per scheduler instance, how do things happen? Also, can someone please explain how the thread could in the ready state while the

Re: How many scheduler nodes are created at the time system starts?

2020-08-17 Thread Richi Dubey
Thank you for your answer. The current SMP schedulers maintain a list of scheduled nodes. These are > nodes which have an allocated processors. Nodes which are ready (they > don't have an allocated processor) are maintained in chains, tables of > chains, or red-black trees depending on the impleme

Regarding idle thread in scheduling

2020-08-17 Thread Richi Dubey
Hi, Can someone please tell me what is the logic behind using functions like _Scheduler_Discard_idle_thread and _Scheduler_Release_idle_thread and other similar functions dealing with idle threads? Reading the code is hard without having an idea about the motivation of the functions. Thanks, Ric

Re: How many scheduler nodes are created at the time system starts?

2020-08-17 Thread Sebastian Huber
On 17/08/2020 14:07, Richi Dubey wrote: The scheduler should only work with nodes which belong to a thread which is ready to execute, e.g. made visible to the scheduler via the unblock and ask_for_help operations. Got it. Maybe this is why my get_highest_ready function was faili

Re: How many scheduler nodes are created at the time system starts?

2020-08-17 Thread Richi Dubey
> > The scheduler should only work > with nodes which belong to a thread which is ready to execute, e.g. made > visible to the scheduler via the unblock and ask_for_help operations. Got it. Maybe this is why my get_highest_ready function was failing. Also, how does the insert_ready function work?

Re: Context switching through an ISR in RTEMS

2020-08-17 Thread Utkarsh Rai
On Mon, Aug 17, 2020 at 11:32 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 16/08/2020 18:09, Utkarsh Rai wrote: > > > > > > > On Sun, Aug 16, 2020 at 9:18 PM Gedare Bloom > > wrote: > > > > On Sat, Aug 15, 2020 at 9:03 PM Utkarsh Rai > > ma

[PATCH] rtems: Use unique option values

2020-08-17 Thread Sebastian Huber
The RTEMS_BARRIER_AUTOMATIC_RELEASE and RTEMS_BINARY_SEMAPHORE options had the same value. In order to better detect a misuse of option values (for example using RTEMS_BINARY_SEMAPHORE for rtems_barrier_create()), the options should have unique values. Close #4054. --- cpukit/include/rtems/rtems

Re: [PATCH v2] rtems/printer.h Fix build warnings -Wclass-memaccess

2020-08-17 Thread Sebastian Huber
Hello Ashref, I checked in the patch. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH v4] Psxtest : Fix String Turncation warning

2020-08-17 Thread Sebastian Huber
On 13/08/2020 17:58, Aschref Ben-Thabet wrote: From: Aschref Ben Thabet replace strncpy with strdup to silence this warning since it tries to allocate enough memory to hold the old string (plus a '\0' character to mark the end of the string). Could you please check if the use of the sizeof he

Re: How many scheduler nodes are created at the time system starts?

2020-08-17 Thread Sebastian Huber
On 17/08/2020 10:45, Richi Dubey wrote: Hi, My code (link to the exact line here ) adds all the scheduler nodes in a chain at the time of initialization. Why do you ne

How many scheduler nodes are created at the time system starts?

2020-08-17 Thread Richi Dubey
Hi, My code (link to the exact line here ) adds all the scheduler nodes in a chain at the time of initialization. Can someone please help me learn about the number of node