diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-07 10:14:55 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-05-10 12:10:14 +0200 |
commit | 39993d6d7693b9fd26d729efd199cc605cd2ae65 (patch) | |
tree | d06b29ef4cd1d68223c25e9de9069b445bf4aed1 /cpukit/score/cpu/no_cpu/rtems | |
parent | arm: Add FUNCTION_THUMB_ENTRY(), etc. (diff) | |
download | rtems-39993d6d7693b9fd26d729efd199cc605cd2ae65.tar.bz2 |
score: Add CPU context validation
Diffstat (limited to 'cpukit/score/cpu/no_cpu/rtems')
-rw-r--r-- | cpukit/score/cpu/no_cpu/rtems/score/cpu.h | 31 |
1 files changed, 31 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 8c4a61bbb4..6d72976d07 100644 --- a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h +++ b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h @@ -1295,6 +1295,37 @@ 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 |