diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-13 17:07:57 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-13 17:07:57 +0000 |
commit | f517be08f1f2ee6c54603267c4a6dcfffa1c21a4 (patch) | |
tree | e39eb94d1764e8c153703c772f87b1c20d14c4ec /cpukit/score/cpu/m32c/rtems | |
parent | 2008-10-13 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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')
-rw-r--r-- | cpukit/score/cpu/m32c/rtems/score/cpu.h | 10 |
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 |