From 76030c703bdfb2ad7bcfb213b99f306d69217af0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 26 May 2015 14:13:44 +0200 Subject: sparc: Add static assertion --- cpukit/score/cpu/sparc/cpu.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpukit/score/cpu/sparc/cpu.c') diff --git a/cpukit/score/cpu/sparc/cpu.c b/cpukit/score/cpu/sparc/cpu.c index 2560f26701..f96d1ea786 100644 --- a/cpukit/score/cpu/sparc/cpu.c +++ b/cpukit/score/cpu/sparc/cpu.c @@ -97,6 +97,11 @@ SPARC_ASSERT_ISF_OFFSET(i7, I7); SPARC_ASSERT_ISF_OFFSET(y, Y); SPARC_ASSERT_ISF_OFFSET(tpc, TPC); +RTEMS_STATIC_ASSERT( + sizeof(CPU_Interrupt_frame) == CONTEXT_CONTROL_INTERRUPT_FRAME_SIZE, + CPU_Interrupt_frame_size +); + /* https://devel.rtems.org/ticket/2352 */ RTEMS_STATIC_ASSERT( sizeof(CPU_Interrupt_frame) % CPU_ALIGNMENT == 0, -- cgit v1.2.3