Re: [PATCH 01/14] cpuuse/cpuusagetop.c: Fix unused variable warning

2016-03-22 Thread Sebastian Huber
On 22/03/16 16:21, Joel Sherrill wrote: Please commit your RTEMS_UNREACHABLE so I can use it. ::) I committed a slightly modified version that includes the assert. So, this will probably conflict with one of your patches. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-8

Re: newlib master vs current newlib snapshot

2016-03-22 Thread Sebastian Huber
On 22/03/16 18:43, Joel Sherrill wrote: To fix a warning for strptime(), I had to define _XOPEN_SOURCE which in turn disabled the BSD timebin. So I had to add _BSD_SOURCE. With these in place, the file compiles with the newlib master but not the snapshot. In the long run we should not expose

AW: RFC: Deprecating Dual Ported Memory Manager

2016-03-22 Thread Thomas Dörfler
+1 Von meinem Samsung Gerät gesendet. Ursprüngliche Nachricht Von: Joel Sherrill Datum: 22.03.2016 19:20 (GMT+01:00) An: "rtems-de...@rtems.org" Betreff: RFC: Deprecating Dual Ported Memory Manager Hi I have never seen much utility in this manager even though it

Re: Request for GPIO Examples

2016-03-22 Thread punit vara
Hi Worth Burruss, This year I proposed a plan (https://goo.gl/cGCXbS) to develop Beagle bone black BSP which includes PWM drivers as well as I2C driver. Could you please suggest me testing methods to test PWM on BBB ? Regards, Punit On Wed, Mar 23, 2016 at 12:03 AM, punit vara wrote: > On Mon,

Re: BBB GSoC Projects was Re: Gsoc 2016 project proposal

2016-03-22 Thread punit vara
On Fri, Mar 18, 2016 at 9:13 PM, punit vara wrote: > On Fri, Mar 18, 2016 at 9:09 PM, punit vara wrote: >> On Wed, Mar 16, 2016 at 1:32 AM, Marcos Díaz >> wrote: >>> Don't forget that TI has some baremetal drivers (StarterWare) for >>> beagle bone. You can base your work with it. >>> >>> On Tue,

Re: Request for GPIO Examples

2016-03-22 Thread punit vara
On Mon, Mar 21, 2016 at 7:24 PM, Worth Burruss wrote: > On 16 Mar 2016 at 2:30, punit vara wrote: > >> > Hi >> > >> > Are there any example programs for the GPIO? I realize they would be >> > specific to the BBB or Pi but would appreciate getting some code. >> > >> > Thanks. >> > >> > --joel >> I

RFC: Deprecating Dual Ported Memory Manager

2016-03-22 Thread Joel Sherrill
Hi I have never seen much utility in this manager even though it was in the original RTEID and ORKID specifications. If anyone is using it, please speak up. Otherwise, I propose that it be marked as deprecated for 4.12 and removed after 4.12 is released. Thoughts? --joel _

xilinx_zynq_a9_qemu and function sections

2016-03-22 Thread Joel Sherrill
Hi I noticed this variant doesn't have function sections because it didn't use the .inc file. Is it ok to add function section support to this variant? It is also using -O0. Is this still necessary? -joel ___ devel mailing list devel@rtems.org http://l

Re: newlib master vs current newlib snapshot

2016-03-22 Thread Joel Sherrill
On Tue, Mar 22, 2016 at 12:50 PM, Gedare Bloom wrote: > Hiccup. > > That's what I am expecting. I will not include my fix in the warning patch series. Better to be a warning on new tools for a while than a hard failure. :( > On Tue, Mar 22, 2016 at 1:43 PM, Joel Sherrill wrote: > > Hi > > > >

Re: [PATCH] [RSB 4.11] Bump OpenRISC versions

2016-03-22 Thread Gedare Bloom
Hesham, You can check them in. Let Joel/Chris know as they have been release testing 4.11 On Mon, Mar 21, 2016 at 10:09 PM, Hesham Almatary wrote: > Thanks Gedare. Both work fine with or1ksim and qemu. > > On Tue, Mar 22, 2016 at 11:30 AM, Gedare Bloom wrote: >> Hi Hesham, >> >> I think the 4.1

Re: Advice Wanted on sonic.c Indentation Warning

2016-03-22 Thread Gedare Bloom
On Tue, Mar 22, 2016 at 12:01 PM, Martin Galvan wrote: > On Tue, Mar 22, 2016 at 12:30 PM, Joel Sherrill wrote: >> If you want to submit a patch and reference this email thread URL so >> future generations know what was discussed, feel free. :) > > Will do. I'll ask Amar if I have write access. >

Re: newlib master vs current newlib snapshot

2016-03-22 Thread Gedare Bloom
Hiccup. On Tue, Mar 22, 2016 at 1:43 PM, Joel Sherrill wrote: > Hi > > When compiling at least main_date.c, there are no issues when compiled > when the current toolset. However, the newlib master reworks the > feature flags. > > To fix a warning for strptime(), I had to define _XOPEN_SOURCE whic

newlib master vs current newlib snapshot

2016-03-22 Thread Joel Sherrill
Hi When compiling at least main_date.c, there are no issues when compiled when the current toolset. However, the newlib master reworks the feature flags. To fix a warning for strptime(), I had to define _XOPEN_SOURCE which in turn disabled the BSD timebin. So I had to add _BSD_SOURCE. With these

Re: Participation in GSoC 2016

2016-03-22 Thread Darshit Shah
Any further comments are appreciated. On 18 March 2016 at 15:59, Darshit Shah wrote: > > > On 18 March 2016 at 14:48, Sebastian Huber < > sebastian.hu...@embedded-brains.de> wrote: > >> >> >> On 18/03/16 14:38, Darshit Shah wrote: >> >>> > "schedulable task sets would miss their deadlines since

Re: Participation in GSoC 2016

2016-03-22 Thread Alan Cudmore
Hi Deval, Your proposal looks good. I would suggest adding a step where you build a known BSP with BSD lib support. It will help you become familiar with the development process. You should also address which Raspberry Pi model you will support. Now that there are so many Raspberry Pi models, it mi

Re: Advice Wanted on sonic.c Indentation Warning

2016-03-22 Thread Martin Galvan
On Tue, Mar 22, 2016 at 12:30 PM, Joel Sherrill wrote: > If you want to submit a patch and reference this email thread URL so > future generations know what was discussed, feel free. :) Will do. I'll ask Amar if I have write access. Thanks! ___ devel m

Re: [PATCH 2/2] posix: pthread_exit() is a no-return function

2016-03-22 Thread Joel Sherrill
On Tue, Mar 22, 2016 at 9:38 AM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > There is a problem if we call pthread_exit() in interrupt context, so we > need a new fatal error. > > Do we catch the cases for inherit/ceiling mutexes also? You shouldn't use them in interrupt context

Re: Advice Wanted on sonic.c Indentation Warning

2016-03-22 Thread Joel Sherrill
On Tue, Mar 22, 2016 at 10:25 AM, Martin Galvan < martin.gal...@tallertechnologies.com> wrote: > On Sat, Mar 19, 2016 at 15:59, Joel Sherrill wrote: > > Hi > > > > GCC 6.0 previews give the indentation warning below > > > > ../../../../../rtems/c/src/libchip/network/sonic.c:837:11: warning: > > s

Re: Advice Wanted on sonic.c Indentation Warning

2016-03-22 Thread Martin Galvan
On Sat, Mar 19, 2016 at 15:59, Joel Sherrill wrote: > Hi > > GCC 6.0 previews give the indentation warning below > > ../../../../../rtems/c/src/libchip/network/sonic.c:837:11: warning: > statement is indented as if it were guarded by... [-Wmisleading-indentation] > > on this code from sonic.c. > >

Re: [PATCH 01/14] cpuuse/cpuusagetop.c: Fix unused variable warning

2016-03-22 Thread Joel Sherrill
Please commit your RTEMS_UNREACHABLE so I can use it. ::) --joel On Tue, Mar 22, 2016 at 10:21 AM, Joel Sherrill wrote: > I don't know how these extra pieces got in that patch. :( > > I will remove the pieces other than cpuusagetop.c. > > For threadglobalconstruction.c, I am switching to just R

Re: [PATCH 01/14] cpuuse/cpuusagetop.c: Fix unused variable warning

2016-03-22 Thread Joel Sherrill
I don't know how these extra pieces got in that patch. :( I will remove the pieces other than cpuusagetop.c. For threadglobalconstruction.c, I am switching to just RTEMS_UNREACHABLE() in place of this: #ifdef __GNUC__ __builtin_unreachable(); #endif _Assert_Not_reached(); I will send a new

Re: [PATCH 1/2] score: Add RTEMS_UNREACHABLE

2016-03-22 Thread Joel Sherrill
On Tue, Mar 22, 2016 at 9:49 AM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > In case we reach the program point marked with RTEMS_UNREACHABLE(), then > the behaviour is undefined according to the GCC documentation. Maybe we > should add some stuff if RTEMS_DEBUG is defined. > >

Re: [PATCH 1/2] score: Add RTEMS_UNREACHABLE

2016-03-22 Thread Sebastian Huber
In case we reach the program point marked with RTEMS_UNREACHABLE(), then the behaviour is undefined according to the GCC documentation. Maybe we should add some stuff if RTEMS_DEBUG is defined. On 22/03/16 07:25, Sebastian Huber wrote: --- cpukit/score/include/rtems/score/basedefs.h | 9

Re: [PATCH 01/14] cpuuse/cpuusagetop.c: Fix unused variable warning

2016-03-22 Thread Sebastian Huber
The commit message doesn't cover all changes. On 22/03/16 15:40, Joel Sherrill wrote: --- cpukit/libmisc/cpuuse/cpuusagetop.c | 1 - cpukit/score/src/threadglobalconstruction.c | 3 +++ testsuites/sptests/Makefile.am | 2 +- testsuites/sptests/sp13/task1.c |

[PATCH 10/14] mptests/*/*.c: Fix warnings

2016-03-22 Thread Joel Sherrill
--- testsuites/mptests/mp05/task1.c | 2 +- testsuites/mptests/mp06/task1.c | 2 +- testsuites/mptests/mp07/task1.c | 2 +- testsuites/mptests/mp14/init.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testsuites/mptests/mp05/task1.c b/testsuites/mptests/mp05/task1.c index

[PATCH 07/14] sp13/task1.c: Remove warning

2016-03-22 Thread Joel Sherrill
--- testsuites/sptests/sp13/task1.c | 56 + 1 file changed, 35 insertions(+), 21 deletions(-) diff --git a/testsuites/sptests/sp13/task1.c b/testsuites/sptests/sp13/task1.c index 58859c0..dcc3b9e 100644 --- a/testsuites/sptests/sp13/task1.c +++ b/testsuites

[PATCH 04/14] sptests/Makefile.am: Enable sptls02

2016-03-22 Thread Joel Sherrill
--- testsuites/sptests/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/sptests/Makefile.am b/testsuites/sptests/Makefile.am index 53adfc1..43f3d82 100644 --- a/testsuites/sptests/Makefile.am +++ b/testsuites/sptests/Makefile.am @@ -65,7 +65,7 @@ _SUBDIRS

[PATCH 11/14] powerpc/shared/openpic/openpic.c: Ignore warnings for __builtin_frame_address() usage

2016-03-22 Thread Joel Sherrill
--- c/src/lib/libbsp/powerpc/shared/openpic/openpic.c | 5 + 1 file changed, 5 insertions(+) diff --git a/c/src/lib/libbsp/powerpc/shared/openpic/openpic.c b/c/src/lib/libbsp/powerpc/shared/openpic/openpic.c index fa37079..39abcd9 100644 --- a/c/src/lib/libbsp/powerpc/shared/openpic/openpic.

[PATCH 13/14] shell/hexdump-conv.c: Disable sccsid to avoid unused warning

2016-03-22 Thread Joel Sherrill
--- cpukit/libmisc/shell/hexdump-conv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/libmisc/shell/hexdump-conv.c b/cpukit/libmisc/shell/hexdump-conv.c index fc579af..a157aae 100644 --- a/cpukit/libmisc/shell/hexdump-conv.c +++ b/cpukit/libmisc/shell/hexdump-conv.c @@ -35,9 +35,11

[PATCH 08/14] cpukit/rtems/src/*mp.c: Fix set but not used warning

2016-03-22 Thread Joel Sherrill
--- cpukit/rtems/src/eventmp.c | 5 +++-- cpukit/rtems/src/msgmp.c| 2 ++ cpukit/rtems/src/partmp.c | 2 ++ cpukit/rtems/src/regionmp.c | 2 ++ cpukit/rtems/src/semmp.c| 2 ++ cpukit/rtems/src/taskmp.c | 2 ++ 6 files changed, 13 insertions(+), 2 deletions(-) diff --git a/cpukit/rtem

[PATCH 06/14] libmisc/shell/main_hexdump.c: Disable unused copyright string

2016-03-22 Thread Joel Sherrill
--- cpukit/libmisc/shell/main_hexdump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/libmisc/shell/main_hexdump.c b/cpukit/libmisc/shell/main_hexdump.c index 5cdb7d2..df7df3f 100644 --- a/cpukit/libmisc/shell/main_hexdump.c +++ b/cpukit/libmisc/shell/main_hexdump.c @@ -35,11 +35,1

[PATCH 03/14] telnetd.c: Fix no prototype warning

2016-03-22 Thread Joel Sherrill
--- cpukit/telnetd/telnetd.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cpukit/telnetd/telnetd.c b/cpukit/telnetd/telnetd.c index 70ccbe1..195ec97 100644 --- a/cpukit/telnetd/telnetd.c +++ b/cpukit/telnetd/telnetd.c @@ -482,18 +482,19 @@ telnetd_dflt_spawn(const c

[PATCH 05/14] libmisc/monitor/mon-prmisc.c: Remove unused rtems_monitor_events_assoc

2016-03-22 Thread Joel Sherrill
--- cpukit/libmisc/monitor/mon-prmisc.c | 36 1 file changed, 36 deletions(-) diff --git a/cpukit/libmisc/monitor/mon-prmisc.c b/cpukit/libmisc/monitor/mon-prmisc.c index a3d7a66..a3dfb45 100644 --- a/cpukit/libmisc/monitor/mon-prmisc.c +++ b/cpukit/libmisc/m

[PATCH 01/14] cpuuse/cpuusagetop.c: Fix unused variable warning

2016-03-22 Thread Joel Sherrill
--- cpukit/libmisc/cpuuse/cpuusagetop.c | 1 - cpukit/score/src/threadglobalconstruction.c | 3 +++ testsuites/sptests/Makefile.am | 2 +- testsuites/sptests/sp13/task1.c | 9 + 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/cpukit/libmisc/c

[PATCH 12/14] libmisc/shell/main_date.c: Define _XOPEN_SOURCE and _BSD_SOURCE to get access to both APIs

2016-03-22 Thread Joel Sherrill
--- cpukit/libmisc/shell/main_date.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/libmisc/shell/main_date.c b/cpukit/libmisc/shell/main_date.c index 9b970a6..ac848f7 100644 --- a/cpukit/libmisc/shell/main_date.c +++ b/cpukit/libmisc/shell/main_date.c @@ -16,6 +16,8 @@ #include "co

[PATCH 14/14] shell/hexdump-odsyntax.c: Add define of _GNU_SOURCE to avoid warnings

2016-03-22 Thread Joel Sherrill
--- cpukit/libmisc/shell/hexdump-odsyntax.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpukit/libmisc/shell/hexdump-odsyntax.c b/cpukit/libmisc/shell/hexdump-odsyntax.c index b69bc51..88c7b80 100644 --- a/cpukit/libmisc/shell/hexdump-odsyntax.c +++ b/cpukit/libmisc/shell/hexdump-odsyn

[PATCH 09/14] erc32/*/erc32sonic.c: Fix warnings

2016-03-22 Thread Joel Sherrill
--- c/src/lib/libbsp/sparc/erc32/erc32sonic/erc32sonic.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/c/src/lib/libbsp/sparc/erc32/erc32sonic/erc32sonic.c b/c/src/lib/libbsp/sparc/erc32/erc32sonic/erc32sonic.c index 0226905..f7d7b61 100644 --- a/c/src/lib/l

[PATCH 02/14] libnetworking/sys/libkern.h: Disable non-POSIX prototype that is actually unused

2016-03-22 Thread Joel Sherrill
--- cpukit/libnetworking/sys/libkern.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/libnetworking/sys/libkern.h b/cpukit/libnetworking/sys/libkern.h index afeaa13..7aa6e8b 100644 --- a/cpukit/libnetworking/sys/libkern.h +++ b/cpukit/libnetworking/sys/libkern.h @@ -78,7 +78,9 @@ ch

[PATCH 00/14] Warning Removal

2016-03-22 Thread Joel Sherrill
I have been building using the master for binutils, gdb, newlib, and GCC. Between newlib and GCC in particular, we have some new warnings. This set of small patches attempts to resolve the warnings in an appropriate way. Joel Sherrill (14): cpuuse/cpuusagetop.c: Fix unused variable warning li

Re: [PATCH 2/2] posix: pthread_exit() is a no-return function

2016-03-22 Thread Sebastian Huber
There is a problem if we call pthread_exit() in interrupt context, so we need a new fatal error. On 22/03/16 15:30, Joel Sherrill wrote: Looks good. I have a patch to newlib to add the annotation in pthread.h. I will submit it for review today. On Tue, Mar 22, 2016 at 1:25 AM, Sebastian Huber

Re: What to do with rtems_semaphore_flush() on SMP?

2016-03-22 Thread Sebastian Huber
On 22/03/16 15:23, Joel Sherrill wrote: On Tue, Mar 22, 2016 at 8:56 AM, Sebastian Huber > wrote: Hello, I am currently busy with eliminating the Giant lock for SMP. I came across a problem with rtems_semaphore_flush() and _Thread

Re: [PATCH 2/2] posix: pthread_exit() is a no-return function

2016-03-22 Thread Joel Sherrill
Looks good. I have a patch to newlib to add the annotation in pthread.h. I will submit it for review today. On Tue, Mar 22, 2016 at 1:25 AM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > --- > cpukit/posix/src/pthreadexit.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: What to do with rtems_semaphore_flush() on SMP?

2016-03-22 Thread Joel Sherrill
On Tue, Mar 22, 2016 at 8:56 AM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello, > > I am currently busy with eliminating the Giant lock for SMP. I came across > a problem with rtems_semaphore_flush() and _Thread_queue_Flush(). > > In general the rtems_semaphore_flush() is di

What to do with rtems_semaphore_flush() on SMP?

2016-03-22 Thread Sebastian Huber
Hello, I am currently busy with eliminating the Giant lock for SMP. I came across a problem with rtems_semaphore_flush() and _Thread_queue_Flush(). In general the rtems_semaphore_flush() is difficult to use correctly. For example it could be used for condition synchronization, however, it mu

Re: Participation in GSoC 2016

2016-03-22 Thread Deval Shah
Hello, I have updated my draft proposal and shared on the tracking page. I'm sharing it here as well. https://goo.gl/QQiAf6 Sorry, I was busy with my Mid-Semester exams, could not update earlier. Since this is a draft proposal, it may not be completely polished yet. I'd appreciate any comments o

Re: [PATCH] [RSB 4.11] Bump OpenRISC versions

2016-03-22 Thread Stefan Wallentowitz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 22.03.2016 03:09, Hesham Almatary wrote: > Thanks Gedare. Both work fine with or1ksim and qemu. Hi, I have recently moved GCC forward to the GCC 6 snapshot the other architectures use. Should or1k also keep up with the most recent GCC development

Re: GSoC 2016 Participation

2016-03-22 Thread Sebastian Huber
On 21/03/16 15:55, Rahul Goradia wrote: Is there any other open project related to resource management or scheduling in which I can contribute? Due to the SMP work in progress I don't think any resource management or scheduling related topics are suitable as a GSoC project this year with the

Re: [PATCH 1/2] score: Add RTEMS_UNREACHABLE

2016-03-22 Thread Chris Johns
On 22/03/2016 17:25, Sebastian Huber wrote: --- cpukit/score/include/rtems/score/basedefs.h | 9 + 1 file changed, 9 insertions(+) diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h index facaed9..5d7f5b4 100644 --- a/cpukit/score/i