From 2764bd43d0398be14db6930736a314a01904a072 Mon Sep 17 00:00:00 2001 From: Alexander Krutwig Date: Fri, 29 May 2015 15:54:27 +0200 Subject: sparc: Disable FPU in interrupt context Update #2270. --- cpukit/score/cpu/sparc/cpu.c | 8 ++++++++ 1 file changed, 8 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 e967bf2169..bab0040058 100644 --- a/cpukit/score/cpu/sparc/cpu.c +++ b/cpukit/score/cpu/sparc/cpu.c @@ -29,6 +29,14 @@ RTEMS_STATIC_ASSERT( SPARC_PER_CPU_ISR_DISPATCH_DISABLE ); +#if SPARC_HAS_FPU == 1 + RTEMS_STATIC_ASSERT( + offsetof( Per_CPU_Control, cpu_per_cpu.fsr) + == SPARC_PER_CPU_FSR_OFFSET, + SPARC_PER_CPU_FSR_OFFSET + ); +#endif + #define SPARC_ASSERT_OFFSET(field, off) \ RTEMS_STATIC_ASSERT( \ offsetof(Context_Control, field) == off ## _OFFSET, \ -- cgit v1.2.3