summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-07-18 14:53:16 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-07-25 11:41:10 +0200
commitb2e1bded07232290f0edcb19e03b18dc4e8bce67 (patch)
treefa4bd34b86c89323336eae7c249ac58b792f7160 /cpukit/score/include/rtems
parentbsp/leon2: Add at697f variant (diff)
downloadrtems-b2e1bded07232290f0edcb19e03b18dc4e8bce67.tar.bz2
score: Add optional _CPU_Context_Destroy()
Update #3077.
Diffstat (limited to 'cpukit/score/include/rtems')
-rw-r--r--cpukit/score/include/rtems/score/context.h7
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