summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/m32c/rtems/score/cpu.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-13 17:07:57 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-13 17:07:57 +0000
commitf517be08f1f2ee6c54603267c4a6dcfffa1c21a4 (patch)
treee39eb94d1764e8c153703c772f87b1c20d14c4ec /cpukit/score/cpu/m32c/rtems/score/cpu.h
parent2008-10-13 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-f517be08f1f2ee6c54603267c4a6dcfffa1c21a4.tar.bz2
2008-10-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* context_switch.S, cpu_asm.c, rtems/score/cpu.h: Add support for restarting the currently executing thread. Fine tune alignment factor as two-byte aligned and use this for critical structures.
Diffstat (limited to 'cpukit/score/cpu/m32c/rtems/score/cpu.h')
-rw-r--r--cpukit/score/cpu/m32c/rtems/score/cpu.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/score/cpu/m32c/rtems/score/cpu.h b/cpukit/score/cpu/m32c/rtems/score/cpu.h
index e7de8faa96..c66da04852 100644
--- a/cpukit/score/cpu/m32c/rtems/score/cpu.h
+++ b/cpukit/score/cpu/m32c/rtems/score/cpu.h
@@ -357,7 +357,8 @@ extern "C" {
*
* XXX document implementation including references if appropriate
*/
-#define CPU_STRUCTURE_ALIGNMENT
+#define CPU_STRUCTURE_ALIGNMENT __attribute__ ((aligned (2)))
+
/**
* @defgroup CPUEndian Processor Dependent Endianness Support
@@ -597,7 +598,7 @@ SCORE_EXTERN void *_CPU_Interrupt_stack_high;
*
* XXX document implementation including references if appropriate
*/
-#define CPU_ALIGNMENT 8
+#define CPU_ALIGNMENT 2
/**
* This number corresponds to the byte alignment requirement for the
@@ -823,8 +824,9 @@ void _CPU_Context_Initialize(
*
* XXX document implementation including references if appropriate
*/
-#define _CPU_Context_Restart_self( _the_context ) \
- _CPU_Context_restore( (_the_context) );
+void _CPU_Context_Restart_self(
+ Context_Control *the_context
+);
/**
* @ingroup CPUContext