summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp37
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-04 10:15:02 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-04 12:03:04 +0100
commite50297e36caf2c989a03825cc8589cd730c03389 (patch)
tree8b51cabeec539c025083645ab04c3f35bd582795 /testsuites/sptests/sp37
parentscore: Add and use _Thread_Enable_dispatch_body() (diff)
downloadrtems-e50297e36caf2c989a03825cc8589cd730c03389.tar.bz2
score: ISR lock C/C++ compatiblity issue
Empty structures are implementation-defined in C. GCC gives them a size of zero. In C++ empty structures have a non-zero size. Add ISR_LOCK_DEFINE() to define ISR locks for structures used by C and C++. Update #2273.
Diffstat (limited to 'testsuites/sptests/sp37')
-rw-r--r--testsuites/sptests/sp37/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c
index 60ae01bf01..f838f310a2 100644
--- a/testsuites/sptests/sp37/init.c
+++ b/testsuites/sptests/sp37/init.c
@@ -161,8 +161,8 @@ static void test_isr_level( void )
#if defined(RTEMS_SMP) && defined(RTEMS_PROFILING)
static const size_t lock_size =
- offsetof( ISR_lock_Control, lock.ticket_lock.Stats.name )
- + sizeof( ((ISR_lock_Control *) 0)->lock.ticket_lock.Stats.name );
+ offsetof( ISR_lock_Control, Lock.ticket_lock.Stats.name )
+ + sizeof( ((ISR_lock_Control *) 0)->Lock.ticket_lock.Stats.name );
#else
static const size_t lock_size = sizeof( ISR_lock_Control );
#endif