From b2e1bded07232290f0edcb19e03b18dc4e8bce67 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 18 Jul 2017 14:53:16 +0200 Subject: score: Add optional _CPU_Context_Destroy() Update #3077. --- cpukit/score/include/rtems/score/context.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/score/include/rtems') diff --git a/cpukit/score/include/rtems/score/context.h b/cpukit/score/include/rtems/score/context.h index 46cb4606b1..990a602396 100644 --- a/cpukit/score/include/rtems/score/context.h +++ b/cpukit/score/include/rtems/score/context.h @@ -146,6 +146,13 @@ extern "C" { #define _Context_Save_fp( _fp ) \ _CPU_Context_save_fp( _fp ) +#if defined(_CPU_Context_Destroy) + #define _Context_Destroy( _the_thread, _the_context ) \ + _CPU_Context_Destroy( _the_thread, _the_context ) +#else + #define _Context_Destroy( _the_thread, _the_context ) +#endif + #ifdef __cplusplus } #endif -- cgit v1.2.3