[PATCH rtems-libbsd] rtemsbsd/syscalls: Remove pipe()

2021-09-22 Thread chrisj
From: Chris Johns - This call is provided by RTEMS and that is preferred Closes #4518 --- rtemsbsd/rtems/rtems-bsd-syscall-api.c | 52 testsuite/selectpollkqueue01/test_main.c | 155 --- 2 files changed, 207 deletions(-) diff --git

[PATCH] score: Avoid dead code in thread queue surrender

2021-09-22 Thread Sebastian Huber
For uniprocessor configurations, this patch removes dead code in the _Thread_queue_Surrender() and _Thread_queue_Surrender_priority_ceiling() functions. Dead code is removed from _Thread_queue_Surrender_sticky(). --- cpukit/score/src/threadqenqueue.c | 79 ++- 1 file

[PATCH rtems-docs] user/testing: Add the %wait directive

2021-09-22 Thread chrisj
From: Chris Johns --- user/testing/configuration.rst | 84 +++--- user/testing/tftp.rst | 12 +++-- 2 files changed, 86 insertions(+), 10 deletions(-) diff --git a/user/testing/configuration.rst b/user/testing/configuration.rst index 9c65506..4d67482 100644

[PATCH rtems-libbsd] rtemsbsd/open: Correctly open a mount directory

2021-09-22 Thread chrisj
From: Chris Johns - If the open is for a directory and it is the root of the mounted file system open from the pseudo's root node. --- rtemsbsd/rtems/rtems-bsd-syscall-api.c | 62 ++ rtemsbsd/rtems/rtems-kernel-vfs.c | 3 ++ testsuite/nfs01/test_main.c

Re: [PATCH v2 5/6] cpukit: Add signal mapping support

2021-09-22 Thread Kinsey Moore
On 9/22/2021 21:06, Chris Johns wrote: On 23/9/21 10:16 am, Kinsey Moore wrote: This adds a confdef option allowing an application to request mapping machine exceptions to POSIX signals. This is required for some languages such as Ada.> --- a/cpukit/include/rtems/confdefs/extensions.h +++

Re: [PATCH v2 5/6] cpukit: Add signal mapping support

2021-09-22 Thread Chris Johns
On 23/9/21 10:16 am, Kinsey Moore wrote: > This adds a confdef option allowing an application to request mapping > machine exceptions to POSIX signals. This is required for some languages > such as Ada.> --- a/cpukit/include/rtems/confdefs/extensions.h > +++

Re: [PATCH rtems-tools v1 4/7] TraceReaderLogQEMU.cc: Fix formatting

2021-09-22 Thread Chris Johns
On 23/9/21 12:35 am, Ryan Long wrote: > I changed the definition of discardBuff to > > char discardBuff[100]{}; char discardBuff[100] = {}; ? > So that every element will be initialized to \0. This function is only used > in TraceReaderLogQEMU.cc, and the values that are passed in are > >

Re: [PATCHv5] improve the format error reporting on i386

2021-09-22 Thread zack leung
I can send an example of the exception if you want. zack On Wed, 22 Sept 2021 at 18:01, Gedare Bloom wrote: > Joel, > > This looks good to me. I don't know if you can easily test it? > > Gedare > > On Wed, Sep 22, 2021 at 11:26 AM zack leung > wrote: > > > > ll hex values now have 8 character

[PATCH v2 6/6] testsuite: Add machine exception signal map test

2021-09-22 Thread Kinsey Moore
Add a test to verify that mapping of machine exceptions to POSIX signals operates properly when the application requests it. --- spec/build/testsuites/psxtests/grp.yml| 2 + .../build/testsuites/psxtests/psxsignal09.yml | 22 ++ testsuites/psxtests/psxsignal09/init.c| 73

[PATCH v2 5/6] cpukit: Add signal mapping support

2021-09-22 Thread Kinsey Moore
This adds a confdef option allowing an application to request mapping machine exceptions to POSIX signals. This is required for some languages such as Ada. --- cpukit/doxygen/appl-config.h | 25 - cpukit/include/rtems/confdefs/extensions.h | 7 ++

[PATCH v2 1/6] cpukit/aarch64: Use correct interrupt level types

2021-09-22 Thread Kinsey Moore
All other architectures use uint32_t for interrupt levels and there is no reason not to do so on AArch64. --- cpukit/score/cpu/aarch64/cpu.c | 4 ++-- cpukit/score/cpu/aarch64/include/rtems/score/cpu.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v2 3/6] cpukit/aarch64: Add Exception Manager support

2021-09-22 Thread Kinsey Moore
This adds the call and support functions necessary to add Exception Manager support to AArch64. --- .../cpu/aarch64/aarch64-exception-default.S | 81 + .../cpu/aarch64/aarch64-exception-default.c | 62 +++ .../cpu/aarch64/aarch64-exception-interrupt.S | 165 ++

[PATCH v2 4/6] testsuite: Add machine exception resume test

2021-09-22 Thread Kinsey Moore
Add a test to verify that intercepted exceptions can be resolved and execution can be resumed. --- spec/build/testsuites/sptests/grp.yml | 2 + spec/build/testsuites/sptests/spfatal35.yml | 20 + testsuites/sptests/spfatal35/init.c | 93 +

[PATCH v2 2/6] cpukit: Add Exception Manager

2021-09-22 Thread Kinsey Moore
This adds the framework necessary to allow more generic handling of machine exceptions. This initial patch offers the ability to get the class of exception from the CPU_Exception_frame provided. Future extensions of the Exception Manager could include the ability to get the address of the

[PATCH v2 0/6] Exception Management and Recovery

2021-09-22 Thread Kinsey Moore
This is a reworked patch set for management of recoverable exceptions. The assembly that would have followed the exception handler has been moved to a pair of epilogue functions to avoid the appearance of dead code following the fatal error handlers and the signal mapping code has been refactored

Re: [PATCHv5] improve the format error reporting on i386

2021-09-22 Thread Gedare Bloom
Joel, This looks good to me. I don't know if you can easily test it? Gedare On Wed, Sep 22, 2021 at 11:26 AM zack leung wrote: > > ll hex values now have 8 character width > thread id is now hex > updates #4203 > --- > cpukit/score/cpu/i386/cpu.c | 6 +++--- > 1 file changed, 3 insertions(+),

[PATCHv5] improve the format error reporting on i386

2021-09-22 Thread zack leung
ll hex values now have 8 character width thread id is now hex updates #4203 --- cpukit/score/cpu/i386/cpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c index 77b7a7161c..786cf8b0b6 100644 ---

RE: [PATCH rtems-tools v1 4/7] TraceReaderLogQEMU.cc: Fix formatting

2021-09-22 Thread Ryan Long
I changed the definition of discardBuff to char discardBuff[100]{}; So that every element will be initialized to \0. This function is only used in TraceReaderLogQEMU.cc, and the values that are passed in are #define QEMU_LOG_IN_KEY "IN: " #define QEMU_LOG_SECTION_END ""

Re: [PATCHv5] improve the format error reporting on i386

2021-09-22 Thread Gedare Bloom
On Tue, Sep 21, 2021 at 4:06 PM zack leung wrote: > > all hex values now have 8 character width > thread id is now hex > --- > cpukit/score/cpu/i386/cpu.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/cpukit/score/cpu/i386/cpu.c b/cpukit/score/cpu/i386/cpu.c >

Re: [PATCH rtems-tools 3/3] tester/mvme2307: Add support for the MVME2307 (MVME2700) BSP

2021-09-22 Thread Gedare Bloom
ok On Tue, Sep 21, 2021 at 1:42 AM wrote: > > From: Chris Johns > > - Assumes a stand alone TFTP server > --- > tester/rtems/testing/bsps/mvme2307.ini | 59 ++ > 1 file changed, 59 insertions(+) > create mode 100644 tester/rtems/testing/bsps/mvme2307.ini > > diff --git

Re: [PATCH] score: Improve variable names in thread init

2021-09-22 Thread Gedare Bloom
ok On Tue, Sep 21, 2021 at 5:36 AM Sebastian Huber wrote: > > --- > cpukit/score/src/threadinitialize.c | 50 ++--- > 1 file changed, 25 insertions(+), 25 deletions(-) > > diff --git a/cpukit/score/src/threadinitialize.c > b/cpukit/score/src/threadinitialize.c > index

Re: [PATCH] score: Simplify _Thread_Try_initialize()

2021-09-22 Thread Gedare Bloom
ok On Tue, Sep 21, 2021 at 5:25 AM Sebastian Huber wrote: > > Move a code block to its own new function > _Thread_Initialize_scheduler_and_wait_nodes(). Add comments. > --- > cpukit/score/src/threadinitialize.c | 180 +--- > 1 file changed, 108 insertions(+), 72