Re: [PATCH 1/3] score/sparc: Add support for paravirtualization

2014-06-02 Thread Christian Mauderer
Sorry for the misleading title. I didn't remove the patches for the BSP-specific part from my working directory and git thought, that this single patch would be one of a patch set. Only the one patch I posted is relevant for this discussion thread. Kind regards, Christian Mau

[PATCH 1/3] score/sparc: Add support for paravirtualization

2014-06-02 Thread Christian Mauderer
From: Christian Mauderer Guest systems in paravirtualization environments run usually in user mode. Thus it is not possible to directly access the PSR and TBR registers. Use functions instead of inline assembler to access these registers if RTEMS_PARAVIRT is defined. --- c/src/lib/libbsp

Add support for paravirtualization for sparc.

2014-06-02 Thread Christian Mauderer
s) outside of the tree. The code is testable with the current Sparc-BSPs due to the definition of default functions for _SPARC_Get_PSR and so on in syscall.S. It is only necessary to set the paravirt option for the normal BSP. Kind regards, Christia

Re: [PATCH 2/2] bsps/sparc: Add XtratuM BSP.

2014-05-22 Thread Christian Mauderer
I noted the licensing problems. I think that despite that it is interesting to solve the other points. Am 21.05.2014 16:15, schrieb Joel Sherrill: > > On 5/21/2014 8:54 AM, Gedare Bloom wrote: >> On Wed, May 21, 2014 at 4:04 AM, Christian Mauderer >> wrote: >>> Fi

Re: [PATCH 2/2] bsps/sparc: Add XtratuM BSP.

2014-05-22 Thread Christian Mauderer
Am 21.05.2014 15:54, schrieb Gedare Bloom: > On Wed, May 21, 2014 at 4:04 AM, Christian Mauderer > wrote: >> First of all: Thanks for your comments. You will find answers below. >> >> Am 20.05.2014 16:58, schrieb Gedare Bloom: >>> On Tue, May 20, 2014 at 5:16

Re: [PATCH 2/2] bsps/sparc: Add XtratuM BSP.

2014-05-21 Thread Christian Mauderer
First of all: Thanks for your comments. You will find answers below. Am 20.05.2014 16:58, schrieb Gedare Bloom: > On Tue, May 20, 2014 at 5:16 AM, Christian Mauderer > wrote: >> From: Christian Mauderer >> >> --- >> c/src/lib/libbsp/shared/include/fatal.h

[PATCH 1/2] score/sparc: Add support for para-virtualization.

2014-05-20 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/score/cpu/sparc/cpu.c | 4 +++ cpukit/score/cpu/sparc/rtems/score/cpu.h | 13 +++-- cpukit/score/cpu/sparc/rtems/score/sparc.h | 44 ++ 3 files changed, 58 insertions(+), 3 deletions(-) diff --git a/cpukit

Re: [PATCH 2/2] privateenv: Use POSIX keys instead of task variables.

2014-03-26 Thread Christian Mauderer
> OK. I think it would be good to write this down somewhere for future > reference. possibly in the same spot you documented the note about > needing to configure the system with the key-value. > -Gedare I've extended the documentation for the set_private_env function. I hope that it is clear now

[PATCH 2/2] privateenv: Use POSIX keys instead of task variables.

2014-03-26 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/include/rtems/userenv.h | 21 +-- cpukit/libcsupport/include/rtems/libio_.h | 2 ++ cpukit/libcsupport/src/__usrenv.c | 2 +- cpukit/libcsupport/src/libio_init.c| 12 + cpukit/libcsupport/src

Re: [PATCH 2/2] privateenv: Use POSIX keys instead of task variables.

2014-03-26 Thread Christian Mauderer
Am 26.03.2014 16:23, schrieb Gedare Bloom: > On Wed, Mar 26, 2014 at 8:29 AM, Christian Mauderer > wrote: >> From: Christian Mauderer >> >> --- >> cpukit/include/rtems/userenv.h | 20 +++--- >> cpukit/libcsupport/include/rt

[PATCH 1/2] privateenv: Remove sharing of user environment between threads.

2014-03-26 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/include/rtems/userenv.h | 20 - cpukit/libcsupport/src/privateenv.c| 60 ++ testsuites/fstests/fsnofs01/fsnofs01.doc | 1 - testsuites/fstests/fsnofs01/init.c | 12

[PATCH 2/2] privateenv: Use POSIX keys instead of task variables.

2014-03-26 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/include/rtems/userenv.h | 20 +++--- cpukit/libcsupport/include/rtems/libio_.h | 2 ++ cpukit/libcsupport/src/__usrenv.c | 2 +- cpukit/libcsupport/src/libio_init.c| 12 + cpukit/libcsupport/src

Use cases for rtems_libio_share_private_env

2014-03-24 Thread Christian Mauderer
hared user environments completely? It would simplify the whole module a lot. Kind regards Christian Mauderer -- embedded brains GmbH Christian Mauderer Dornierstr. 4 D-82178 Puchheim Germany email: christian.maude...@embedded-brains.de Phone:

Re: [PATCH 3/3] libcsupport: Use POSIX keys for gxx-wrapper-key-functions.

2014-03-21 Thread Christian Mauderer
I've found another small bug in my patch: After removing the pthread header from the gxx_wrapper.h in my second version of the patch I forgot to add it to gxx_wrapper.c. This is fixed in the appended new version of the third patch. Sorry for the additional mails. _

[PATCH 3/3] libcsupport: Use POSIX keys for gxx-wrapper-key-functions.

2014-03-21 Thread Christian Mauderer
From: Christian Mauderer With this patch C++ applications now eventually need additional POSIX-keys and POSIX-key-value-pairs configured. --- cpukit/libcsupport/include/rtems/gxx_wrappers.h | 8 +- cpukit/libcsupport/src/gxx_wrappers.c | 112 +++- testsuites

[PATCH] cpukit/librpc: Replace rpc task variables with POSIX keys.

2014-03-21 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/librpc/include/rpc/rpc.h | 4 ++- cpukit/librpc/src/rpc/rtems_rpc.c | 65 +-- 2 files changed, 51 insertions(+), 18 deletions(-) diff --git a/cpukit/librpc/include/rpc/rpc.h b/cpukit/librpc/include/rpc/rpc.h index

Re: [PATCH 3/3] libcsupport: Use POSIX keys for gxx-wrapper-key-functions.

2014-03-21 Thread Christian Mauderer
Am 21.03.2014 13:30, schrieb Gedare Bloom: > On Fri, Mar 21, 2014 at 5:26 AM, Christian Mauderer > wrote: >> From: Christian Mauderer >> >> With this patch C++ applications now eventually need additional POSIX-keys >> and >> POSIX-key-value-pairs configured.

[PATCH 3/3] libcsupport: Use POSIX keys for gxx-wrapper-key-functions.

2014-03-21 Thread Christian Mauderer
From: Christian Mauderer With this patch C++ applications now eventually need additional POSIX-keys and POSIX-key-value-pairs configured. --- cpukit/libcsupport/include/rtems/gxx_wrappers.h | 8 +- cpukit/libcsupport/src/gxx_wrappers.c | 111 +++- testsuites

[PATCH 2/3] libcsupport: Remove unused gxx-wrapper function.

2014-03-21 Thread Christian Mauderer
From: Christian Mauderer The rtems_gxx_key_dtor function is not longer used by gcc. --- cpukit/libcsupport/include/rtems/gxx_wrappers.h | 2 -- cpukit/libcsupport/src/gxx_wrappers.c | 10 -- testsuites/libtests/gxx01/gxx01.doc | 1 - testsuites/libtests/gxx01

Add test and remove unnecessary include.

2014-03-21 Thread Christian Mauderer
On a suggestion from Sebastian I've changed two points: - Add a testcase for calling pthread_setspecific two times with the same key. - Remove one unnecessary include. ___ rtems-devel mailing list rtems-devel@rtems.org http://www.rtems.org/mailman/listi

[PATCH 1/3] posix: Prevent pthread_setspecific from returning EAGAIN.

2014-03-21 Thread Christian Mauderer
From: Christian Mauderer The man-page for pthread_setspecific does not define the EAGAIN return value. Further without this patch it was not possible to set keys that have been already set a new value. Add test for setting a new value to a already set key. --- cpukit/posix/src/keysetspecific.c

[PATCH 3/3] libcsupport: Use POSIX keys for gxx-wrapper-key-functions.

2014-03-21 Thread Christian Mauderer
From: Christian Mauderer With this patch C++ applications now eventually need additional POSIX-keys and POSIX-key-value-pairs configured. --- cpukit/libcsupport/include/rtems/gxx_wrappers.h | 10 +-- cpukit/libcsupport/src/gxx_wrappers.c | 111 +++- testsuites

[PATCH 1/3] posix: Prevent pthread_setspecific from returning EAGAIN.

2014-03-21 Thread Christian Mauderer
From: Christian Mauderer The man-page for pthread_setspecific does not define the EAGAIN return value. Further without this patch it was not possible to set keys that have been already set a new value. --- cpukit/posix/src/keysetspecific.c | 59 +++ 1 file

[PATCH 2/3] libcsupport: Remove unused gxx-wrapper function.

2014-03-21 Thread Christian Mauderer
From: Christian Mauderer The rtems_gxx_key_dtor function is not longer used by gcc. --- cpukit/libcsupport/include/rtems/gxx_wrappers.h | 2 -- cpukit/libcsupport/src/gxx_wrappers.c | 10 -- testsuites/libtests/gxx01/gxx01.doc | 1 - testsuites/libtests/gxx01

Header updated.

2014-03-20 Thread Christian Mauderer
I have replaced the header of once.c with the original one from pthreadonce.c to honour the original work. ___ rtems-devel mailing list rtems-devel@rtems.org http://www.rtems.org/mailman/listinfo/rtems-devel

[PATCH] score: Unify pthread and gxx_wrapper once and move to score.

2014-03-20 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libcsupport/src/gxx_wrappers.c | 15 ++-- cpukit/posix/src/pthreadonce.c | 37 ++- cpukit/score/Makefile.am| 2 ++ cpukit/score/include/rtems/score/onceimpl.h | 50 ++ cpukit

[PATCH] score: Unify pthread and gxx_wrapper once and move to score.

2014-03-20 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libcsupport/src/gxx_wrappers.c | 15 +--- cpukit/posix/src/pthreadonce.c | 37 +- cpukit/score/Makefile.am| 2 + cpukit/score/include/rtems/score/onceimpl.h | 50 cpukit

Re: [PATCH] cpukit/shell: Replace task variables with posix keys.

2014-03-19 Thread Christian Mauderer
I have updated the documentation. Further I put all changes into one patch. The fileio test would not work after applying the posix key patch to the shell. Therefore I shouldn't have split it up in the first place. Am 19.03.2014 17:17, schrieb Christian Mauderer: > From: Christian

[PATCH] cpukit/shell: Replace task variables with posix keys.

2014-03-19 Thread Christian Mauderer
From: Christian Mauderer Use posix keys for current shell environment instead of task variables. With this patch the shell needs one posix-key and one posix-key-value-pair configured. Update documentation for the shell. Adapt samples/fileio: - Add necessary objects. - Add login function and

Re: [PATCH 1/2] cpukit/shell: Replace task variables with posix keys.

2014-03-19 Thread Christian Mauderer
Am 19.03.2014 16:31, schrieb Gedare Bloom: > On Wed, Mar 19, 2014 at 11:15 AM, Christian Mauderer > wrote: >> From: Christian Mauderer >> >> Use posix keys for current shell environment instead of task variables. With >> this patch the shell needs one posix-ke

[PATCH 1/2] cpukit/shell: Replace task variables with posix keys.

2014-03-19 Thread Christian Mauderer
From: Christian Mauderer Use posix keys for current shell environment instead of task variables. With this patch the shell needs one posix-key and one posix-key-value-pair configured. --- cpukit/libmisc/shell/shell.c | 56 ++-- cpukit/libmisc/shell

[PATCH 2/2] samples/fileio: Adaption for shell with posix keys.

2014-03-19 Thread Christian Mauderer
From: Christian Mauderer Add necessary objects. Add login function and custom device name for better testing of the shell. --- testsuites/samples/fileio/init.c | 5 +++-- testsuites/samples/fileio/system.h | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/testsuites

Re: [PATCH 2/2] samples/fileio: Add login and custom device name for better testing of the shell.

2014-03-19 Thread Christian Mauderer
Hello, I did something wrong while testing and have to fix some additional points. So you don't have to try the patches because I'll have to fix them first and send them again after fixing. Sorry. Kind regards, Christian Mauderer Am 19.03.2014 12:54, schrieb Christian Mauder

[PATCH 2/2] samples/fileio: Add login and custom device name for better testing of the shell.

2014-03-19 Thread Christian Mauderer
From: Christian Mauderer --- testsuites/samples/fileio/init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/testsuites/samples/fileio/init.c b/testsuites/samples/fileio/init.c index 80da4ab..2a0f9db 100644 --- a/testsuites/samples/fileio/init.c +++ b/testsuites

[PATCH 1/2] cpukit/shell: Replace task variable for current shell environment with posix keys.

2014-03-19 Thread Christian Mauderer
From: Christian Mauderer --- cpukit/libmisc/shell/shell.c | 54 ++-- cpukit/libmisc/shell/shell.h | 4 ++-- 2 files changed, 39 insertions(+), 19 deletions(-) diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c index 90bb512

[PATCH 2/2] psxonce01: Add call counter to check if init function has been called.

2014-03-18 Thread Christian Mauderer
From: Christian Mauderer --- testsuites/psxtests/psxonce01/init.c | 27 ++- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/testsuites/psxtests/psxonce01/init.c b/testsuites/psxtests/psxonce01/init.c index 6fd6579..9b6a5ee 100644 --- a/testsuites

[PATCH 1/2] psxtests: move pthread_once tests into an extra test.

2014-03-18 Thread Christian Mauderer
From: Christian Mauderer --- testsuites/psxtests/Makefile.am | 3 ++ testsuites/psxtests/configure.ac| 1 + testsuites/psxtests/psx01/init.c| 17 testsuites/psxtests/psx01/psx01.doc | 3 -- testsuites/psxtests/psx01/psx01.scn | 5

Usage of POSIX keys instead of task variables

2014-03-18 Thread Christian Mauderer
test so that it can build independent of the POSIX-API. After this the next steps will be to replace the task variables in the mentioned modules. Kind regards Christian Mauderer -- embedded brains GmbH Christian Mauderer Dornierstr. 4 D-