[PATCH 2/4] score: Add CPU context validation
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed May 8 13:50:34 UTC 2013
On 05/08/2013 03:32 PM, Gedare Bloom wrote:
> diff --git a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h
>>index 8c4a61b..fae7677 100644
>>--- a/cpukit/score/cpu/no_cpu/rtems/score/cpu.h
>>+++ b/cpukit/score/cpu/no_cpu/rtems/score/cpu.h
>>@@ -1295,6 +1295,33 @@ void _CPU_Context_restore_fp(
>> );
>>
>> /**
>>+ * @ingroup CPUContext
>>+ *
>>+ * @brief Clobbers all volatile registers with values derived from the pattern
>>+ * parameter.
>>+ *
>>+ * This function is used in test sptests/spcontext01.
>>+ *
>>+ * @param[in] pattern Pattern used to generate distinct register values.
>>+ */
>>+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 in test sptests/spcontext01.
>>+ *
>>+ * @param[in] pattern Pattern used to generate distinct register values.
>>+ */
>>+void _CPU_Context_validate( uintptr_t pattern );
Here is an explanation. I will copy and paste this to the CPU porting guide.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list