summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/no_cpu/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-20 07:56:43 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-20 09:11:05 +0200
commit42f2fdfd4e18a783e8be4f26f83ce86c7a1fedb0 (patch)
tree7712dfa1591715b0bff54b06e949512b8c636d68 /cpukit/score/cpu/no_cpu/include
parentscore: Remove obsolete CPU port defines (diff)
downloadrtems-42f2fdfd4e18a783e8be4f26f83ce86c7a1fedb0.tar.bz2
score: Move context validation declarations
The context validation support functions _CPU_Context_validate() and _CPU_Context_volatile_clobber() are used only by one test program (spcontext01). Move the function declarations to the CPU port implementation header file.
Diffstat (limited to 'cpukit/score/cpu/no_cpu/include')
-rw-r--r--cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h31
-rw-r--r--cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h31
2 files changed, 31 insertions, 31 deletions
diff --git a/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h b/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h
index 2cbad57843..7327dff610 100644
--- a/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h
@@ -1145,37 +1145,6 @@ void _CPU_Context_restore_fp(
);
/**
- * @ingroup CPUContext
- *
- * @brief Clobbers all volatile registers with values derived from the pattern
- * parameter.
- *
- * This function is used only in test sptests/spcontext01.
- *
- * @param[in] pattern Pattern used to generate distinct register values.
- *
- * @see _CPU_Context_validate().
- */
-void _CPU_Context_volatile_clobber( uintptr_t pattern );
-
-/**
- * @ingroup CPUContext
- *
- * @brief Initializes and validates the CPU context with values derived from
- * the pattern parameter.
- *
- * This function will not return if the CPU context remains consistent. In
- * case this function returns the CPU port is broken.
- *
- * This function is used only in test sptests/spcontext01.
- *
- * @param[in] pattern Pattern used to generate distinct register values.
- *
- * @see _CPU_Context_volatile_clobber().
- */
-void _CPU_Context_validate( uintptr_t pattern );
-
-/**
* @brief The set of registers that specifies the complete processor state.
*
* The CPU exception frame may be available in fatal error conditions like for
diff --git a/cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h b/cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h
index 85214d7f6c..1e970cb11d 100644
--- a/cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h
+++ b/cpukit/score/cpu/no_cpu/include/rtems/score/cpuimpl.h
@@ -73,6 +73,37 @@ register struct Per_CPU_Control *_CPU_Per_CPU_current asm( "rX" );
*/
#define _CPU_Get_thread_executing() ( _CPU_Per_CPU_current->executing )
+/**
+ * @ingroup CPUContext
+ *
+ * @brief Clobbers all volatile registers with values derived from the pattern
+ * parameter.
+ *
+ * This function is used only in test sptests/spcontext01.
+ *
+ * @param[in] pattern Pattern used to generate distinct register values.
+ *
+ * @see _CPU_Context_validate().
+ */
+void _CPU_Context_volatile_clobber( uintptr_t pattern );
+
+/**
+ * @ingroup CPUContext
+ *
+ * @brief Initializes and validates the CPU context with values derived from
+ * the pattern parameter.
+ *
+ * This function will not return if the CPU context remains consistent. In
+ * case this function returns the CPU port is broken.
+ *
+ * This function is used only in test sptests/spcontext01.
+ *
+ * @param[in] pattern Pattern used to generate distinct register values.
+ *
+ * @see _CPU_Context_volatile_clobber().
+ */
+void _CPU_Context_validate( uintptr_t pattern );
+
#ifdef __cplusplus
}
#endif