Re: [PATCH 7/7] rtems: Add rtems_task_build()

2020-08-31 Thread Chris Johns
On 31/8/20 4:43 pm, Sebastian Huber wrote: > On 31/08/2020 02:34, Chris Johns wrote: > >> On 31/8/20 12:49 am, Sebastian Huber wrote: >>> On 22/08/2020 09:49, Chris Johns wrote: >>> On 21/8/20 9:51 pm, Sebastian Huber wrote: > In contrast to rtems_task_create() this function creates a

Re: GSoC 2020 - Final project report

2020-08-31 Thread Hesham Almatary
Thanks for updating the blog post, Utkarsh. On Sun, 30 Aug 2020 at 17:40, Gedare Bloom wrote: > > Utkarsh, > > I'll be happy to continue to guide you in this work, subject to your > availability. > > -Gedare > > On Sun, Aug 30, 2020 at 9:25 AM Utkarsh Rai wrote: > > > > Thank you for your kind g

[PATCH] testsuits/dl10 : Prototype missing

2020-08-31 Thread Aschref Ben-Thabet
From: Aschref Ben Thabet Add a prototxpe for the function rtems_main_o5 to avoid the prototype missing warning. --- testsuites/libtests/dl10/dl10-o6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testsuites/libtests/dl10/dl10-o6.c b/testsuites/libtests/dl10/dl10-o6.c in

Re: [PATCH] testsuits/dl10 : Prototype missing

2020-08-31 Thread Sebastian Huber
On 31/08/2020 10:27, Aschref Ben-Thabet wrote: From: Aschref Ben Thabet Add a prototxpe prototype, please use a spell checker in your editor. for the function rtems_main_o5 Use rtems_main_o5() for functions. to avoid the prototype missing warning. --- testsuites/libtests/dl10/dl10-o6.

Re: [PATCH 7/7] rtems: Add rtems_task_build()

2020-08-31 Thread Sebastian Huber
On 31/08/2020 09:39, Chris Johns wrote: On 31/8/20 4:43 pm, Sebastian Huber wrote: On 31/08/2020 02:34, Chris Johns wrote: On 31/8/20 12:49 am, Sebastian Huber wrote: On 22/08/2020 09:49, Chris Johns wrote: On 21/8/20 9:51 pm, Sebastian Huber wrote: In contrast to rtems_task_create() this

Re: Error in RISC-V Dynamic loading code

2020-08-31 Thread Hesham Almatary
Hello Eshan, What rtems-tools version are you using? I remember I fixed that (or something similar) in this commit [1] [1] https://github.com/RTEMS/rtems-tools/commit/e6e610d262940b7651157597b6b1406aa806b4d1 On Sun, 30 Aug 2020 at 18:33, Eshan Dhawan wrote: > > Hello everyone, > While testing

[PATCH v2] testsuits/dl10 : Prototype missing

2020-08-31 Thread Aschref Ben-Thabet
From: Aschref Ben Thabet Add a prototype for the function rtems_main_o5 to avoid the prototype missing warning. --- testsuites/libtests/dl10/dl10-o6.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testsuites/libtests/dl10/dl10-o6.c b/testsuites/libtests/dl10/dl10-o6.c in

Re: Error in RISC-V Dynamic loading code

2020-08-31 Thread Eshan Dhawan
>> On 31-Aug-2020, at 3:44 PM, Hesham Almatary >> wrote: > Hello Eshan, > > What rtems-tools version are you using? I remember I fixed that (or > something similar) in this commit [1] The error comes while Building RTEMS > > [1] > https://github.com/RTEMS/rtems-tools/commit/e6e610d262940b76

Re: Error in RISC-V Dynamic loading code

2020-08-31 Thread Hesham Almatary
On Mon, 31 Aug 2020 at 15:05, Eshan Dhawan wrote: > > > >> On 31-Aug-2020, at 3:44 PM, Hesham Almatary > >> wrote: > > Hello Eshan, > > > > What rtems-tools version are you using? I remember I fixed that (or > > something similar) in this commit [1] > The error comes while Building RTEMS > > dl

Re: [PATCH] config: Provide file descriptors only if necessary

2020-08-31 Thread Sebastian Huber
On 21/08/2020 10:44, Sebastian Huber wrote: Only provide the file descriptor array if CONFIGURE_MAXIMUM_FILE_DESCRIPTORS > 0. If someone configured CONFIGURE_MAXIMUM_FILE_DESCRIPTORS == 0 and the appplication uses something which requires a file descriptor, then a linker error will show up. An

How to use _Thread_Get() function properly?

2020-08-31 Thread Utkarsh Rai
Hello, I have been trying to get the pointer to the control block of a thread using the _Thread_Get() function for stack sharing using a shared-memory object, the implementation can be seen here . The problem is when

Re: How to use _Thread_Get() function properly?

2020-08-31 Thread Sebastian Huber
On 31/08/2020 19:52, Utkarsh Rai wrote: Hello, I have been trying to get the pointer to the control block of a thread using the _Thread_Get() function for stack sharing using a shared-memory object, the implementation can be seen here

Re: [PATCH 7/7] rtems: Add rtems_task_build()

2020-08-31 Thread Gedare Bloom
On Mon, Aug 31, 2020 at 2:58 AM Sebastian Huber wrote: > > On 31/08/2020 09:39, Chris Johns wrote: > > > On 31/8/20 4:43 pm, Sebastian Huber wrote: > >> On 31/08/2020 02:34, Chris Johns wrote: > >> > >>> On 31/8/20 12:49 am, Sebastian Huber wrote: > On 22/08/2020 09:49, Chris Johns wrote: > >

Re: How to use _Thread_Get() function properly?

2020-08-31 Thread Utkarsh Rai
Thanks, I'll check it out. On Mon, Aug 31, 2020 at 11:35 PM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 31/08/2020 19:52, Utkarsh Rai wrote: > > > Hello, > > I have been trying to get the pointer to the control block of a thread > > using the _Thread_Get() function for stack

Re: [PATCH 7/7] rtems: Add rtems_task_build()

2020-08-31 Thread Sebastian Huber
On 31/08/2020 20:10, Gedare Bloom wrote: On Mon, Aug 31, 2020 at 2:58 AM Sebastian Huber wrote: On 31/08/2020 09:39, Chris Johns wrote: On 31/8/20 4:43 pm, Sebastian Huber wrote: On 31/08/2020 02:34, Chris Johns wrote: On 31/8/20 12:49 am, Sebastian Huber wrote: On 22/08/2020 09:49, Ch

Re: [PATCH 7/7] rtems: Add rtems_task_build()

2020-08-31 Thread Joel Sherrill
On Fri, Aug 21, 2020 at 6:51 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > In contrast to rtems_task_create() this function creates a task with a > user-provided task storage area. > And all the creation parameters are in a structure which this log doesn't mention. How is the

select call on a UDP socket with BSD library?

2020-08-31 Thread Cudmore, Alan P. (GSFC-5820)
I am having problems using the “select” call with an RTEMS + LibBSD network socket. Here is what I am using: RTEMS 5.1 RSB, RTEMS source, and RTEMS LibBSD release files. ARM/Beagleboneblack + LibBSD I have verified that the network is initialized (ethernet device on the beaglebone) and I can rec

[PATCH] eng: Update the python template, add a shell template

2020-08-31 Thread chrisj
From: Chris Johns --- eng/coding-file-hdr.rst | 62 ++--- 1 file changed, 58 insertions(+), 4 deletions(-) diff --git a/eng/coding-file-hdr.rst b/eng/coding-file-hdr.rst index cda631a..dafe82c 100644 --- a/eng/coding-file-hdr.rst +++ b/eng/coding-file-hdr.rst

Re: select call on a UDP socket with BSD library?

2020-08-31 Thread Chris Johns
On 1/9/20 6:14 am, Cudmore, Alan P. (GSFC-5820) wrote: > I am having problems using the “select” call with an RTEMS + LibBSD network > socket. > > Here is what I am using: > > RTEMS 5.1 RSB, RTEMS source, and RTEMS LibBSD release files. > > ARM/Beagleboneblack + LibBSD > > I have verified that

Re: select call on a UDP socket with BSD library?

2020-08-31 Thread Ian Caddy
On 1/09/2020 10:48 am, Chris Johns wrote: On 1/9/20 6:14 am, Cudmore, Alan P. (GSFC-5820) wrote: I am having problems using the “select” call with an RTEMS + LibBSD network socket. I’m trying to use “select” to check the socket (using a timeout of zero), but when I call select I get a -1 retu

Re: [PATCH] eng: Update the python template, add a shell template

2020-08-31 Thread Sebastian Huber
On 01/09/2020 04:10, chr...@rtems.org wrote: From: Chris Johns --- eng/coding-file-hdr.rst | 62 ++--- 1 file changed, 58 insertions(+), 4 deletions(-) diff --git a/eng/coding-file-hdr.rst b/eng/coding-file-hdr.rst index cda631a..dafe82c 100644 --- a/eng/

Re: select call on a UDP socket with BSD library?

2020-08-31 Thread Sebastian Huber
On 01/09/2020 04:48, Chris Johns wrote: The fd in this instance is 77 and I have RTEMS setup for 200 file descriptors. Are there any other LibBSD configuration parameters I should be aware of? I am sorry but 77 is to high because newlib by default limits the fd set size to 64... # ifndef

Re: select call on a UDP socket with BSD library?

2020-08-31 Thread Sebastian Huber
On 01/09/2020 05:31, Ian Caddy wrote: On 1/09/2020 10:48 am, Chris Johns wrote: On 1/9/20 6:14 am, Cudmore, Alan P. (GSFC-5820) wrote: I am having problems using the “select” call with an RTEMS + LibBSD network socket. I’m trying to use “select” to check the socket (using a timeout of zero)

[PATCH] user: Mention file descriptor changes

2020-08-31 Thread Sebastian Huber
--- user/migration/v4_11-to-v5.rst | 14 ++ 1 file changed, 14 insertions(+) diff --git a/user/migration/v4_11-to-v5.rst b/user/migration/v4_11-to-v5.rst index d42744d..5480434 100644 --- a/user/migration/v4_11-to-v5.rst +++ b/user/migration/v4_11-to-v5.rst @@ -69,6 +69,20 @@ The dire

Re: [PATCH] user: Mention file descriptor changes

2020-08-31 Thread Sebastian Huber
On 01/09/2020 07:04, Sebastian Huber wrote: +In RTEMS 5.1, the file descriptor list is a LIFO in contrast to previous +versions where it was a FIFO. Maybe better: In RTEMS 5.1, the list of free file descriptors has a LIFO ordering in contrast to previous versions where it was a FIFO. -- Seb

Re: [PATCH] eng: Update the python template, add a shell template

2020-08-31 Thread Chris Johns
On 1/9/20 2:45 pm, Sebastian Huber wrote: > All the examples in PEP 257 use """ strings. I used this style for all the new > Python code in rtems-central. Could we use """ instead of '''? Is this just for docstrings? Chris ___ devel mailing list devel@r

Re: [PATCH] user: Mention file descriptor changes

2020-08-31 Thread Chris Johns
On 1/9/20 3:07 pm, Sebastian Huber wrote: > On 01/09/2020 07:04, Sebastian Huber wrote: >> +In RTEMS 5.1, the file descriptor list is a LIFO in contrast to previous >> +versions where it was a FIFO. > > Maybe better: > > In RTEMS 5.1, the list of free file descriptors has a LIFO ordering in > co

[PATCH v2] eng: Update the python template, add a shell template

2020-08-31 Thread chrisj
From: Chris Johns --- eng/coding-file-hdr.rst | 65 ++--- 1 file changed, 61 insertions(+), 4 deletions(-) diff --git a/eng/coding-file-hdr.rst b/eng/coding-file-hdr.rst index cda631a..7a98796 100644 --- a/eng/coding-file-hdr.rst +++ b/eng/coding-file-hdr.rst

Re: [PATCH] eng: Update the python template, add a shell template

2020-08-31 Thread Sebastian Huber
On 01/09/2020 08:15, Chris Johns wrote: On 1/9/20 2:45 pm, Sebastian Huber wrote: All the examples in PEP 257 use """ strings. I used this style for all the new Python code in rtems-central. Could we use """ instead of '''? Is this just for docstrings? I used "" for all strings. The reason wa

Re: [PATCH] user: Mention file descriptor changes

2020-08-31 Thread Sebastian Huber
On 01/09/2020 08:22, Chris Johns wrote: On 1/9/20 3:07 pm, Sebastian Huber wrote: On 01/09/2020 07:04, Sebastian Huber wrote: +In RTEMS 5.1, the file descriptor list is a LIFO in contrast to previous +versions where it was a FIFO. Maybe better: In RTEMS 5.1, the list of free file descriptors

Re: [PATCH] eng: Update the python template, add a shell template

2020-08-31 Thread Chris Johns
On 1/9/20 4:44 pm, Sebastian Huber wrote: > On 01/09/2020 08:15, Chris Johns wrote: >> On 1/9/20 2:45 pm, Sebastian Huber wrote: >>> All the examples in PEP 257 use """ strings. I used this style for all the >>> new >>> Python code in rtems-central. Could we use """ instead of '''? >> Is this just

[PATCH v2] user: Mention file descriptor changes

2020-08-31 Thread Sebastian Huber
--- user/migration/v4_11-to-v5.rst | 17 + 1 file changed, 17 insertions(+) diff --git a/user/migration/v4_11-to-v5.rst b/user/migration/v4_11-to-v5.rst index d42744d..8016a63 100644 --- a/user/migration/v4_11-to-v5.rst +++ b/user/migration/v4_11-to-v5.rst @@ -69,6 +69,23 @@ The d