arm shared code contains not shared code?

2016-04-21 Thread printk
Hello, I am learning the rtems source, and when i look into this folder: rtems@book64:~/rtems-lite/rtems/c/src/lib/libcpu/arm/shared$ tree . ├── arm920 │   └── mmu.c └── include ├── am335x.h ├── arm-cp15.h ├── cache_.h ├── mmu.h ├── omap3.h └── o

Re: [PATCH 00/13] Replace mongoose with civetweb.

2016-04-21 Thread Christian Mauderer
Yes that's right. 05/13 just adds the unchanged sources from civetweb. Beneath civetweb.c and civetweb.h it also adds handle_form.inl and md5.inl. The last two files are included into civetweb.c. According to the documentation "The *INL* file extension represents code that is statically included in

Re: the rtems kernel source list

2016-04-21 Thread Chris Johns
On 22/04/2016 12:19, printk wrote: Hello, I am learning RTEMS, where is the kernel source, I find some place seems holding the kernel source: rtems/c/src/support/ - only version.c there. rtems/c/src/ada/ - is this kernel source? No. rtems/cpukit/score/src

the rtems kernel source list

2016-04-21 Thread printk
Hello, I am learning RTEMS, where is the kernel source, I find some place seems holding the kernel source:

Re: [PATCH 00/13] Replace mongoose with civetweb.

2016-04-21 Thread Joel Sherrill
On Thu, Apr 21, 2016 at 7:36 PM, Chris Johns wrote: > On 21/04/2016 18:49, Christian Mauderer wrote: > >> This patch series replaces the mongoose webserver by its still MIT >> licensed fork civetweb. >> >> Please note that I try to get some (currently two) of the patches >> directly into civetweb

Re: [PATCH 00/13] Replace mongoose with civetweb.

2016-04-21 Thread Chris Johns
On 21/04/2016 18:49, Christian Mauderer wrote: This patch series replaces the mongoose webserver by its still MIT licensed fork civetweb. Please note that I try to get some (currently two) of the patches directly into civetweb too. But I think that it might need some time and adaption till they

Managing RTEMS time in a paravirtualized environment

2016-04-21 Thread Joel Sherrill
Hi Gedare and I are working on a paravirtualized RTEMS executing in an ARINC 653 partition. One challenge is ensuring the time passage in RTEMS is correct. The problem in a nutshell is that RTEMS is not executing the entire time. Each partition is an independent RTEMS instance. There will be no "t

[PATCH] config/microblaze/rtems.h: Redefine LINK_SPEC for RTEMS

2016-04-21 Thread Joel Sherrill
2016-04-21 Joel Sherrill * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid xilink.ld and flags not relevant to RTEMS. --- gcc/config/microblaze/rtems.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/gcc/config/microblaze/rtems.h b/gcc/config/microblaze/rtems.h

Re: RKI Build Error - rtems_clock_get not available on 4.12

2016-04-21 Thread Alan Cudmore
I should be able to update my RKI repository soon.. I’m building the latest tools and RTEMS repo now. Alan > On Apr 21, 2016, at 6:14 AM, Pavel Pisa wrote: > > Hello Habeeb, > > rtems_clock_get() has been obsoleted long time ago > and has been removed in > >e65c45c4b6cf6dfb485bef48385e39

Re: RKI Build Error - rtems_clock_get not available on 4.12

2016-04-21 Thread Pavel Pisa
Hello Habeeb, rtems_clock_get() has been obsoleted long time ago and has been removed in e65c45c4b6cf6dfb485bef48385e39969de8b361 Obsolete rtems_clock_get() directive. This service was marked as deprecated long prior to the 4.11 release series and is now being removed. c

Provide POSIX network header for all normal Newlib targets?

2016-04-21 Thread Sebastian Huber
Hello, with the recent type changes for etc. we are now able to build the FreeBSD 9.3 network stack on RTEMS. We directly use * , * , * , * , * , * , and * from Newlib with mostly unmodified FreeBSD header and source files. Cygwin and Linux provide currently their own set of network

[PATCH 08/13] mghttpd: Use MD5 library.

2016-04-21 Thread Christian Mauderer
From: Christian Mauderer This applies the changes from ea008e2d0d78b49e0f793949ab4a665b69283372. --- cpukit/mghttpd/civetweb.c | 5 + 1 file changed, 5 insertions(+) diff --git a/cpukit/mghttpd/civetweb.c b/cpukit/mghttpd/civetweb.c index 1fb9ead..47e1dfe 100644 --- a/cpukit/mghttpd/civetwe

[PATCH 12/13] mghttpd: Use gethostbyname instead of getaddrinfo.

2016-04-21 Thread Christian Mauderer
From: Christian Mauderer RTEMS does not have a getaddrinfo() so use gethostbyname() instead. This reintroduces a not thread save function into the code but it seems that we have no better replacement at the moment. --- cpukit/mghttpd/civetweb.c | 28 1 file changed,

[PATCH 10/13] mghttpd: Don't use __sync_XXX_and_fetch functions.

2016-04-21 Thread Christian Mauderer
From: Christian Mauderer This patch should be replaced by one that uses libatomic as soon as it is provided by our toolchain. --- cpukit/mghttpd/civetweb.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cpukit/mghttpd/civetweb.c b/cpukit/mghttpd/civetweb.c index 0c90

[PATCH 02/13] libnetworking: Add minimal getnameinfo().

2016-04-21 Thread Christian Mauderer
From: Christian Mauderer This implementation just falls back to giving a string representation of the IP. It supports IPv4 only. --- cpukit/libnetworking/Makefile.am| 2 +- cpukit/libnetworking/libc/getnameinfo.c | 61 + 2 files changed, 62 insertions(+),

[PATCH 01/13] libnetworking: Add prototype for getnameinfo().

2016-04-21 Thread Christian Mauderer
From: Christian Mauderer Copy the prototype and necessary defines for getnameinfo() from current FreeBSD. --- cpukit/libnetworking/netdb.h | 47 1 file changed, 47 insertions(+) diff --git a/cpukit/libnetworking/netdb.h b/cpukit/libnetworking/netdb.h

[PATCH 04/13] libcsupport: Add dummy for setgroups().

2016-04-21 Thread Christian Mauderer
From: Christian Mauderer The dummy for setgroups() allows applications using it to build (for example civetweb webserver). --- cpukit/libcsupport/Makefile.am | 2 +- cpukit/libcsupport/src/setgroups.c | 26 testsuites/psxtests/psxhdrs/Makefile.am

[PATCH 07/13] mghttpd: Use HAVE_CONFIG_H.

2016-04-21 Thread Christian Mauderer
From: Christian Mauderer This applies the changes from 4248b28296af7a56c3b1fb14c53debd8d79ed6d9. --- cpukit/mghttpd/civetweb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpukit/mghttpd/civetweb.c b/cpukit/mghttpd/civetweb.c index 5c5cd72..1fb9ead 100644 --- a/cpukit/mghttpd/civetweb.

[PATCH 06/13] mghttpd: Use poll() replacement.

2016-04-21 Thread Christian Mauderer
From: Christian Mauderer This patch provides a poll() replacement based on the poll() used for civetweb on windows. A similar patch based on the one on http://forums.bannister.org/ubbthreads.php?ubb=showflat&topic=7600&gonew=1 had been integrated into the RTEMS version of mongoose in commit b5d2

[PATCH 09/13] mghttpd: Add stack size and scheduling options.

2016-04-21 Thread Christian Mauderer
From: Christian Mauderer This applies the changes from 54da7c3e55056efd93adece52076b720490258d6. --- cpukit/mghttpd/civetweb.c | 117 +- 1 file changed, 96 insertions(+), 21 deletions(-) diff --git a/cpukit/mghttpd/civetweb.c b/cpukit/mghttpd/civetweb

[PATCH 00/13] Replace mongoose with civetweb.

2016-04-21 Thread Christian Mauderer
This patch series replaces the mongoose webserver by its still MIT licensed fork civetweb. Please note that I try to get some (currently two) of the patches directly into civetweb too. But I think that it might need some time and adaption till they are accepted. So I thought that adding them to RT

[PATCH 03/13] testsuite: Add test for getnameinfo().

2016-04-21 Thread Christian Mauderer
From: Christian Mauderer --- testsuites/libtests/Makefile.am| 1 + testsuites/libtests/configure.ac | 1 + testsuites/libtests/libnetworking01/Makefile.am| 22 +++ testsuites/libtests/libnetworking01/init.c | 161 + .../l

[PATCH 11/13] mghttpd: Allow to have no timegm().

2016-04-21 Thread Christian Mauderer
From: Christian Mauderer We currently don't have a timegm function. There seems to be no easy way to replace this function with POSIX functions in a thread save way. This patch just avoids the call. Note that with this solution, the caching feature is effectively disabled. --- cpukit/mghttpd/ci

[PATCH 01/10] posix: Avoid Giant lock in sem_getvalue()

2016-04-21 Thread Sebastian Huber
Update #2555. --- cpukit/posix/src/semgetvalue.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/cpukit/posix/src/semgetvalue.c b/cpukit/posix/src/semgetvalue.c index ed49c09..f895266 100644 --- a/cpukit/posix/src/semgetvalue.c +++ b/cpukit/posix/src/semgetvalue.

[PATCH 02/10] score: Avoid Giant lock for CORE mtx/sem

2016-04-21 Thread Sebastian Huber
Avoid Giant lock for CORE mutex and semaphore flush and delete operations. Update #2555. --- cpukit/posix/include/rtems/posix/semaphoreimpl.h | 26 +--- cpukit/posix/src/semaphoredeletesupp.c | 22 +++ cpukit/posix/src/semclose.c | 22 +++ cpukit/posix/s

[PATCH 08/10] score: Avoid Giant lock for barriers

2016-04-21 Thread Sebastian Huber
Use _Thread_queue_Flush_critical() to atomically release the barrier. Update #2555. --- cpukit/posix/include/rtems/posix/barrierimpl.h | 24 ++--- cpukit/posix/src/pbarrierdestroy.c | 45 -- cpukit/posix/src/pbarrierwait.c| 50 +-- cpukit

[PATCH 05/10] score: Use _Thread_queue_Flush_critical for futex

2016-04-21 Thread Sebastian Huber
--- cpukit/score/src/futex.c | 98 ++-- 1 file changed, 28 insertions(+), 70 deletions(-) diff --git a/cpukit/score/src/futex.c b/cpukit/score/src/futex.c index 73d48fd..59a625c 100644 --- a/cpukit/score/src/futex.c +++ b/cpukit/score/src/futex.c @@ -1,

[PATCH 06/10] score: Use _Thread_queue_Flush_critical() for cond

2016-04-21 Thread Sebastian Huber
--- cpukit/score/src/condition.c | 108 --- 1 file changed, 41 insertions(+), 67 deletions(-) diff --git a/cpukit/score/src/condition.c b/cpukit/score/src/condition.c index da3d133..ba255fc 100644 --- a/cpukit/score/src/condition.c +++ b/cpukit/score/src/co

[PATCH 04/10] score: Add _Thread_queue_Is_empty()

2016-04-21 Thread Sebastian Huber
--- cpukit/score/include/rtems/score/threadqimpl.h | 7 +++ testsuites/sptests/spthreadq01/init.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h index 7b1c896..68ce1

[PATCH 10/10] rtems: Avoid Giant lock for dual ported memory

2016-04-21 Thread Sebastian Huber
There is no need for an ISR lock since the Dual_ported_memory_Control is immutable after initialization. ISR disable is enough for deletion safety on uni-processor configurations. Update #2555. --- cpukit/rtems/include/rtems/rtems/dpmemimpl.h | 18 +++ cpukit/rtems/src/dpmemdelete.c

[PATCH 09/10] score: Avoid Giant lock for CORE rwlock

2016-04-21 Thread Sebastian Huber
Update #2555. --- cpukit/posix/include/rtems/posix/rwlockimpl.h | 5 +- cpukit/posix/src/prwlockdestroy.c | 72 --- cpukit/posix/src/prwlockinit.c| 22 ++-- cpukit/posix/src/prwlockrdlock.c | 56 +++-- cpukit/posix/src/prwlo

[PATCH 03/10] posix: Use _Objects_Get_local() for semaphores

2016-04-21 Thread Sebastian Huber
This simplifies the code since the object location is no longer used. Remove superfluous header includes. --- cpukit/posix/include/rtems/posix/semaphoreimpl.h | 11 ++--- cpukit/posix/src/semaphorewaitsupp.c | 60 +--- cpukit/posix/src/semclose.c

[PATCH 07/10] score: Add _Thread_queue_Flush_default_filter()

2016-04-21 Thread Sebastian Huber
--- cpukit/score/include/rtems/score/threadqimpl.h | 15 +++ cpukit/score/src/threadqflush.c| 11 +++ 2 files changed, 26 insertions(+) diff --git a/cpukit/score/include/rtems/score/threadqimpl.h b/cpukit/score/include/rtems/score/threadqimpl.h index 68ce109..