summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/no_cpu
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/cpu/no_cpu
parentbsp/leon2: Add at697f variant (diff)
downloadrtems-b2e1bded07232290f0edcb19e03b18dc4e8bce67.tar.bz2
score: Add optional _CPU_Context_Destroy()
Update #3077.
Diffstat (limited to 'cpukit/score/cpu/no_cpu')
-rw-r--r--cpukit/score/cpu/no_cpu/rtems/score/cpu.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h
index 62e1a91cb9..c16adc7327 100644
--- a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h
+++ b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h
@@ -816,6 +816,25 @@ uint32_t _CPU_ISR_Get_level( void );
/* Context handler macros */
/**
+ * @ingroup CPUContext
+ *
+ * @brief Destroys the context of the thread.
+ *
+ * It must be implemented as a macro and an implementation is optional. The
+ * default implementation does nothing.
+ *
+ * @param[in] _the_thread The corresponding thread.
+ * @param[in] _the_context The context to destroy.
+ *
+ * Port Specific Information:
+ *
+ * XXX document implementation including references if appropriate
+ */
+#define _CPU_Context_Destroy( _the_thread, _the_context ) \
+ { \
+ }
+
+/**
* @ingroup CPUContext
*
* Initialize the context to a state suitable for starting a