diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-30 15:54:53 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-31 15:09:04 +0200 |
commit | c236082873cb4a2fd42af4ca0868106e1dd65422 (patch) | |
tree | 443a45e3a2ffadcf884c71ddd77035eedc0d6fa9 /cpukit/score/src/percpuasm.c | |
parent | score: Format <rtems/score/percpu.h> (diff) | |
download | rtems-c236082873cb4a2fd42af4ca0868106e1dd65422.tar.bz2 |
smp: Provide cache optimized Per_CPU_Control
Delete _Per_CPU_Information_p.
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 |