diff options
Diffstat (limited to 'cpukit/score/src/percpuasm.c')
-rw-r--r-- | cpukit/score/src/percpuasm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/score/src/percpuasm.c b/cpukit/score/src/percpuasm.c index 15b49c72e1..53e6326abd 100644 --- a/cpukit/score/src/percpuasm.c +++ b/cpukit/score/src/percpuasm.c @@ -64,10 +64,12 @@ RTEMS_STATIC_ASSERT( ); #endif -RTEMS_STATIC_ASSERT( - sizeof( CPU_Per_CPU_control ) == CPU_PER_CPU_CONTROL_SIZE, - CPU_PER_CPU_CONTROL_SIZE -); +#if CPU_PER_CPU_CONTROL_SIZE > 0 + RTEMS_STATIC_ASSERT( + sizeof( CPU_Per_CPU_control ) == CPU_PER_CPU_CONTROL_SIZE, + CPU_PER_CPU_CONTROL_SIZE + ); +#endif #if defined( RTEMS_SMP ) RTEMS_STATIC_ASSERT( |