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

Chris Johns chrisj at rtems.org
Thu Sep 23 02:06:30 UTC 2021


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
> +++ b/cpukit/include/rtems/confdefs/extensions.h
> @@ -93,6 +93,10 @@
>    #include <rtems/stackchk.h>
>  #endif
>  
> +#ifdef CONFIGURE_EXCEPTION_TO_SIGNAL_MAPPING
> +  #include <rtems/exception.h>
> +#endif
> +
>  #ifdef __cplusplus
>  extern "C" {
>  #endif
> @@ -103,6 +107,9 @@ extern "C" {
>    || defined(CONFIGURE_INITIAL_EXTENSIONS) \
>    || defined(BSP_INITIAL_EXTENSION)
>    const User_extensions_Table _User_extensions_Initial_extensions[] = {
> +    #ifdef CONFIGURE_EXCEPTION_TO_SIGNAL_MAPPING
> +      { .fatal = _Exception_map_signal },

There is something amiss adding a recoverable interface and support that hooks
`.fatal`. Either this field is now badly named or should there be something else
added? Another extension? I do not know.

What happens to my default fatal handler if I decide to enable this support?

Chris


More information about the devel mailing list