Re: pthread_getattr_np does not work

2017-09-19 Thread Sebastian Huber
Hello Xuelin, please answer to the mailing list. On 20/09/17 08:20, xuelin.t...@qkmtech.com wrote: I need to get thread attributes through this function. ** #define __GNU_VISIBLE #include  void test_thread (guint8 **staddr, 

Re: Self-contained POSIX synchronization objects for RTEMS 4.12?

2017-09-19 Thread Sebastian Huber
On 20/09/17 02:47, Chris Johns wrote: On 20/09/2017 03:43, Sebastian Huber wrote: [...] So, making these checks RTEMS_DEBUG dependent is something worth considering. Maybe we need a RTEMS_ROBUST option focusing on user introduced errors. RTEMS_DEBUG enables a lot of internal consistency c

Re: Test suite's minimum sample has no test banners

2017-09-19 Thread Chris Johns
On 20/09/2017 15:04, Sebastian Huber wrote: > On 20/09/17 05:26, Chris Johns wrote: > >> The test suite's sample test minimum.exe has no test banners and so it >> appears >> in the test results as invalid or time out. >> >> How should we gather a result for this test? > > The test documentation

Re: Test suite's minimum sample has no test banners

2017-09-19 Thread Sebastian Huber
On 20/09/17 05:26, Chris Johns wrote: The test suite's sample test minimum.exe has no test banners and so it appears in the test results as invalid or time out. How should we gather a result for this test? The test documentation in minimum.doc is quite fitting. I guess the purpose of this te

Test suite's minimum sample has no test banners

2017-09-19 Thread Chris Johns
hi, The test suite's sample test minimum.exe has no test banners and so it appears in the test results as invalid or time out. How should we gather a result for this test? Chris ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/list

Re: Self-contained POSIX synchronization objects for RTEMS 4.12?

2017-09-19 Thread Chris Johns
On 20/09/2017 03:43, Sebastian Huber wrote: > - Am 19. Sep 2017 um 16:40 schrieb Gedare Bloom ged...@rtems.org: >> On Tue, Sep 19, 2017 at 10:09 AM, Joel Sherrill wrote: >>> On Tue, Sep 19, 2017 at 8:16 AM, Sebastian Huber >>> wrote: >>> Newlib/Cygwin folks have been pretty insistent that the

RTEMS Tester Kit

2017-09-19 Thread Chris Johns
Hi, I am currently looking into getting `rtems-test` to support TFTP loading of tests to targets that support networking with bootloaders like u-boot that can boot executables. I have added a TFTP server implemented in python to the `rtems-test` command and each request to the server sends the ne

Many BSPs Fail with Debug Enabled

2017-09-19 Thread Joel Sherrill
Hi I am starting to investigate the failures but 41 BSPs fail to build with --enable-rtems-debug and --enable-tests=all. Some fail because tests are too large to fit with debug enabled. These fail with an error related to bsp_interrupt_assert: log/powerpc-mpc8260ads.log log/powerpc-psim.log log

Re: Self-contained POSIX synchronization objects for RTEMS 4.12?

2017-09-19 Thread Sebastian Huber
- Am 19. Sep 2017 um 16:40 schrieb Gedare Bloom ged...@rtems.org: > On Tue, Sep 19, 2017 at 10:09 AM, Joel Sherrill wrote: >> >> >> On Tue, Sep 19, 2017 at 8:16 AM, Sebastian Huber >> wrote: >>> >>> Hello, >>> >>> we have to make some trade-offs in the implementation with respect to the >>

Re: Self-contained POSIX synchronization objects for RTEMS 4.12?

2017-09-19 Thread Joel Sherrill
On Tue, Sep 19, 2017 at 9:40 AM, Gedare Bloom wrote: > On Tue, Sep 19, 2017 at 10:09 AM, Joel Sherrill wrote: > > > > > > On Tue, Sep 19, 2017 at 8:16 AM, Sebastian Huber > > wrote: > >> > >> Hello, > >> > >> we have to make some trade-offs in the implementation with respect to > the > >> error

Re: Self-contained POSIX synchronization objects for RTEMS 4.12?

2017-09-19 Thread Gedare Bloom
On Tue, Sep 19, 2017 at 10:09 AM, Joel Sherrill wrote: > > > On Tue, Sep 19, 2017 at 8:16 AM, Sebastian Huber > wrote: >> >> Hello, >> >> we have to make some trade-offs in the implementation with respect to the >> error checking. The operations get a pointer to the synchronization object, >> e.g

Re: Self-contained POSIX synchronization objects for RTEMS 4.12?

2017-09-19 Thread Joel Sherrill
On Tue, Sep 19, 2017 at 8:16 AM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Hello, > > we have to make some trade-offs in the implementation with respect to the > error checking. The operations get a pointer to the synchronization object, > e.g. > > int sem_post(sem_t *sem); >

[PATCH] posix shm: Add oflag to Shm_Control

2017-09-19 Thread Joel Sherrill
--- cpukit/posix/include/rtems/posix/shm.h | 1 + cpukit/posix/src/shmopen.c | 1 + 2 files changed, 2 insertions(+) diff --git a/cpukit/posix/include/rtems/posix/shm.h b/cpukit/posix/include/rtems/posix/shm.h index 9284b39..d2b6036 100644 --- a/cpukit/posix/include/rtems/posix/shm.h

Re: Self-contained POSIX synchronization objects for RTEMS 4.12?

2017-09-19 Thread Sebastian Huber
Hello, we have to make some trade-offs in the implementation with respect to the error checking. The operations get a pointer to the synchronization object, e.g. int sem_post(sem_t *sem); int pthread_mutex_lock(pthread_mutex_t *mutex); Do we want to check for NULL pointers? Do we want to c

[PATCH] RTEMS: Optimize pthread_once_t

2017-09-19 Thread Sebastian Huber
Reduce size of pthread_once_t and make it zero-initialized. Signed-off-by: Sebastian Huber --- newlib/libc/sys/rtems/include/machine/_threads.h | 5 ++--- newlib/libc/sys/rtems/include/sys/_pthreadtypes.h | 8 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/newlib/libc/s

[PATCH] posix: Optimize pthread_once_t

2017-09-19 Thread Sebastian Huber
Reduce size of pthread_once_t and make it zero-initialized. Update #3142. --- cpukit/libcsupport/src/gxx_wrappers.c | 2 +- cpukit/posix/src/pthreadonce.c | 5 + cpukit/score/include/rtems/score/onceimpl.h | 2 +- cpukit/score/src/once.c | 2 +- 4 files

Re: 3rd party package build system

2017-09-19 Thread Nicolas Tsiogkas
Hi, I made the required changes and got SOEM to compile. It is still untested and I'm getting the following error, but the library builds well. RTEMS Source Builder - Set Builder, 4.11 (7db7be3ae7e0 modified) Build Set: 4.11/net/soem config: net/soem.cfg package: soem-sparc-rtems4.11-1 git: clone