diff options
Diffstat (limited to 'cpukit/include/rtems/score/context.h')
-rw-r--r-- | cpukit/include/rtems/score/context.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/include/rtems/score/context.h b/cpukit/include/rtems/score/context.h index a01e29683c..364f8c1182 100644 --- a/cpukit/include/rtems/score/context.h +++ b/cpukit/include/rtems/score/context.h @@ -49,7 +49,9 @@ extern "C" { * to store a full floating point context. */ #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE ) - #define CONTEXT_FP_SIZE CPU_CONTEXT_FP_SIZE + #define CONTEXT_FP_SIZE \ + ( ( CPU_CONTEXT_FP_SIZE + CPU_HEAP_ALIGNMENT - 1 ) \ + & ~( CPU_HEAP_ALIGNMENT - 1 ) ) #else #define CONTEXT_FP_SIZE 0 #endif |