diff options
Diffstat (limited to 'cpukit/score/src/percpuasm.c')
-rw-r--r-- | cpukit/score/src/percpuasm.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/score/src/percpuasm.c b/cpukit/score/src/percpuasm.c index a79936bab4..60ca48dc5a 100644 --- a/cpukit/score/src/percpuasm.c +++ b/cpukit/score/src/percpuasm.c @@ -26,13 +26,20 @@ RTEMS_STATIC_ASSERT( CPU_SIZEOF_POINTER ); -#ifdef __SIZEOF_POINTER__ +#if defined( __SIZEOF_POINTER__ ) RTEMS_STATIC_ASSERT( CPU_SIZEOF_POINTER == __SIZEOF_POINTER__, __SIZEOF_POINTER__ ); #endif +#if defined( RTEMS_SMP ) + RTEMS_STATIC_ASSERT( + sizeof( Per_CPU_Control_envelope ) == PER_CPU_CONTROL_SIZE, + PER_CPU_CONTROL_SIZE + ); +#endif + RTEMS_STATIC_ASSERT( offsetof(Per_CPU_Control, isr_nest_level) == PER_CPU_ISR_NEST_LEVEL, PER_CPU_ISR_NEST_LEVEL |