[PATCH] score: Introduce CPU budget operations

2021-10-27 Thread Sebastian Huber
This patch set replaces the CPU budget algorithm enumeration with a set of CPU budget operations which implement a particular CPU budget algorithm. This helps to hide the CPU budget algorithm implementation details from the general thread handling. The CPU budget callouts are turned into CPU budg

[PATCH RSB v2] rtems-kernel: Implement kernel recipe using waf

2021-10-27 Thread Ryan Long
Closes #4145 --- rtems/config/tools/rtems-kernel-6.cfg | 6 +- rtems/config/tools/rtems-kernel-common.cfg | 125 source-builder/rtems-kernel-config-check | 147 + source-builder/sb/options.py | 135 +---

[PATCH v3 0/5] Exception Extensions

2021-10-27 Thread Kinsey Moore
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 * The concept of exception classes have been removed in favor of a direct CPU_Exception_fr

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

2021-10-27 Thread Kinsey Moore
This adds the calls and support functions 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 v3 1/5] cpukit: Add exception extensions

2021-10-27 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 RTEMS_

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

2021-10-27 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 ++ cpukit/include/rtems/score/ex

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

2021-10-27 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 v3 3/5] testsuite: Add machine exception resume test

2021-10-27 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 + testsuites/sptests/

[PATCH RSB] microblaze: Fix FreeBSD 13 build

2021-10-27 Thread Alex White
This bumps the dtc version included in the MicroBlaze toolchain 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 ++ rtems/config/6/rtems-microblaze.bset | 2 +- 2 files changed, 19 i

Re: [PATCH RSB] microblaze: Fix FreeBSD 13 build

2021-10-27 Thread Joel Sherrill
Can you fix the same thing on the other architectures that include dtc? I think the MIPS and moxie need it at least. Also make sure to the RTEMS 7 configurations get the same change. And.. there is a base/ bset for dtc which needs bumping. Bet you didn't expect this much fun feedback. :) --joel

Re: [PATCH v3 0/5] Exception Extensions

2021-10-27 Thread Sebastian Huber
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 * The concept of exception classes have been remo

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

2021-10-27 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 dispatch

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

2021-10-27 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 co