Re: [PATCH RSB] Update to dtc 1.6.1

2021-10-28 Thread Joel Sherrill
On Thu, Oct 28, 2021, 6:25 PM Chris Johns wrote: > On 29/10/21 6:26 am, Joel Sherrill wrote: > > On Thu, Oct 28, 2021 at 12:20 PM Hesham Almatary > > wrote: > >> > >> Does RISC-V need that too? > > > > Not based on the current bsets. > > > > $ grep -r dtc * > >

Re: [PATCH RSB] Update to dtc 1.6.1

2021-10-28 Thread Chris Johns
On 29/10/21 6:26 am, Joel Sherrill wrote: > On Thu, Oct 28, 2021 at 12:20 PM Hesham Almatary > wrote: >> >> Does RISC-V need that too? > > Not based on the current bsets. > > $ grep -r dtc * > 6/rtems-moxie.bset:devel/dtc-1.6.0-1 > 6/rtems-microblaze.bset:devel/dtc-1.6.0-1 >

Re: [PATCH rtems-tools] rtems-bsp-builder: Fix mail support

2021-10-28 Thread Chris Johns
OK Thanks Chris On 29/10/21 7:01 am, Alex White wrote: > This fixes a problem with mailer options support that occurred because > check.py uses argparse.ArgumentParser instead of tester.rt.options. > --- > rtemstoolkit/mailer.py | 2 +- > tester/rt/check.py | 17 - > 2

[PATCH v4 5/5] testsuite: Add machine exception signal map test

2021-10-28 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 v4 4/5] cpukit: Add signal mapping support

2021-10-28 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 | 23 + cpukit/include/rtems/confdefs/extensions.h | 7 ++

[PATCH v4 1/5] cpukit: Add exception extensions

2021-10-28 Thread Kinsey Moore
This adds the set of functions necessary to allow more generic handling of machine exceptions. This initial patch offers the ability to manipulate a CPU_Exception_frame and resume execution using that exception information with or without thread dispatch. These functions are gated behind the

[PATCH v4 3/5] testsuite: Add machine exception resume test

2021-10-28 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 | 89 +

[PATCH v4 2/5] cpukit/aarch64: Add exception extensions support

2021-10-28 Thread Kinsey Moore
This adds the function implementations necessary to add exception extensions support to AArch64. --- .../cpu/aarch64/aarch64-exception-default.S | 131 +- .../cpu/aarch64/aarch64-exception-default.c | 59 ++- .../cpu/aarch64/aarch64-exception-interrupt.S | 165

[PATCH v4 0/5] Exception extensions

2021-10-28 Thread Kinsey Moore
Updates from previous patch set: * moved raise to a post-switch action * prevented mapping from occurring before the first context switch * adjusted the api according to suggestions ___ devel mailing list devel@rtems.org

[PATCH rtems-tools] rtems-bsp-builder: Fix mail support

2021-10-28 Thread Alex White
This fixes a problem with mailer options support that occurred because check.py uses argparse.ArgumentParser instead of tester.rt.options. --- rtemstoolkit/mailer.py | 2 +- tester/rt/check.py | 17 - 2 files changed, 17 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v3 4/5] cpukit: Add signal mapping support

2021-10-28 Thread Kinsey Moore
On 10/28/2021 01:02, Sebastian Huber wrote: On 27/10/2021 23:44, Kinsey Moore wrote: +/* + * Exception handler. Map the exception class to SIGFPE, SIGSEGV + * or SIGILL for Ada or other runtimes. + */ +void _Exception_Raise_signal( +  Internal_errors_Source source, +  bool  

Re: [PATCH RSB] Update to dtc 1.6.1

2021-10-28 Thread Joel Sherrill
On Thu, Oct 28, 2021 at 12:20 PM Hesham Almatary wrote: > > Does RISC-V need that too? Not based on the current bsets. $ grep -r dtc * 6/rtems-moxie.bset:devel/dtc-1.6.0-1 6/rtems-microblaze.bset:devel/dtc-1.6.0-1 7/rtems-moxie.bset:devel/dtc-1.6.0-1 Alex.. the grep shows that 7/microblaze is

Re: [PATCH RSB] Update to dtc 1.6.1

2021-10-28 Thread Hesham Almatary
Does RISC-V need that too? On Thu, 28 Oct 2021 at 16:41, Alex White wrote: > This bumps the dtc version from 1.6.0 to 1.6.1. Building 1.6.0 on > FreeBSD 13 was unsuccessful, but 1.6.1 appears to build fine. > --- > bare/config/devel/dtc-1.6.1-1.cfg | 18 ++ >

[PATCH rtems-tools] TraceConverter.cc: Add catch for exception

2021-10-28 Thread Ryan Long
CID 1471639: Add catch for exception Closes #4501 --- tester/covoar/TraceConverter.cc | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/tester/covoar/TraceConverter.cc b/tester/covoar/TraceConverter.cc index 4a24bd4..7770b11 100644 ---

Re: [PATCH v3 1/5] cpukit: Add exception extensions

2021-10-28 Thread Sebastian Huber
On 28/10/2021 18:04, Kinsey Moore wrote: If not used, then please remove it. This is used from the assembly implementation of the thread dispatch epilogue variant to copy the exception frame on to the thread stack. I suppose it could be done with memcpy instead since that is what the AArch64

Re: [PATCH v3 0/5] Exception Extensions

2021-10-28 Thread Kinsey Moore
On 10/28/2021 00:51, Sebastian Huber wrote: On 27/10/2021 23:44, Kinsey Moore wrote: This patch set is a rework of the previous Exception Management API patch set based on feedback from the community. From the last revision: * Everything has been moved out of the RTEMS Classic API namespace *

Re: [PATCH v3 1/5] cpukit: Add exception extensions

2021-10-28 Thread Kinsey Moore
On 10/28/2021 01:00, Sebastian Huber wrote: On 27/10/2021 23:44, Kinsey Moore wrote: This adds the set of functions necessary to allow more generic handling of machine exceptions. This initial patch offers the ability to manipulate a CPU_Exception_frame and resume execution using that

[PATCH RSB] Update to dtc 1.6.1

2021-10-28 Thread Alex White
This bumps the dtc version from 1.6.0 to 1.6.1. Building 1.6.0 on FreeBSD 13 was unsuccessful, but 1.6.1 appears to build fine. --- bare/config/devel/dtc-1.6.1-1.cfg | 18 ++ bare/config/devel/dtc.bset | 2 +- bare/config/devel/qemu-couverture.bset | 2 +-

Re: [PATCH v3 4/5] cpukit: Add signal mapping support

2021-10-28 Thread Sebastian Huber
On 27/10/2021 23:44, Kinsey Moore wrote: +/* + * Exception handler. Map the exception class to SIGFPE, SIGSEGV + * or SIGILL for Ada or other runtimes. + */ +void _Exception_Raise_signal( + Internal_errors_Source source, + bool always_set_to_false, + Internal_errors_t

Re: [PATCH v3 1/5] cpukit: Add exception extensions

2021-10-28 Thread Sebastian Huber
On 27/10/2021 23:44, Kinsey Moore wrote: This adds the set of functions necessary to allow more generic handling of machine exceptions. This initial patch offers the ability to manipulate a CPU_Exception_frame and resume execution using that exception information with or without thread