diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-18 14:53:16 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-07-25 11:41:10 +0200 |
commit | b2e1bded07232290f0edcb19e03b18dc4e8bce67 (patch) | |
tree | fa4bd34b86c89323336eae7c249ac58b792f7160 /cpukit/score/include | |
parent | bsp/leon2: Add at697f variant (diff) | |
download | rtems-b2e1bded07232290f0edcb19e03b18dc4e8bce67.tar.bz2 |
score: Add optional _CPU_Context_Destroy()
Update #3077.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/include/rtems/score/context.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |