summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/arm/cpu.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-14 09:53:57 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-11-18 07:30:35 +0100
commitd59585db26ea30d23a0d112212cf4b42d01e73fc (patch)
tree9cf0b9d4759cbdffce87da9892110415d27d4503 /cpukit/score/cpu/arm/cpu.c
parentarm: Simplify _ARMV4_Exception_interrupt (diff)
downloadrtems-d59585db26ea30d23a0d112212cf4b42d01e73fc.tar.bz2
arm: Use Per_CPU_Control::isr_dispatch_disable
Update #2751.
Diffstat (limited to 'cpukit/score/cpu/arm/cpu.c')
-rw-r--r--cpukit/score/cpu/arm/cpu.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/cpukit/score/cpu/arm/cpu.c b/cpukit/score/cpu/arm/cpu.c
index 944ca630c7..dc87844483 100644
--- a/cpukit/score/cpu/arm/cpu.c
+++ b/cpukit/score/cpu/arm/cpu.c
@@ -15,7 +15,7 @@
*
* Copyright (c) 2007 Ray xu <rayx.cn@gmail.com>
*
- * Copyright (c) 2009-2011 embedded brains GmbH
+ * Copyright (c) 2009, 2016 embedded brains GmbH
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
@@ -50,6 +50,14 @@
);
#endif
+#ifdef ARM_MULTILIB_ARCH_V4
+ RTEMS_STATIC_ASSERT(
+ offsetof( Context_Control, isr_dispatch_disable )
+ == ARM_CONTEXT_CONTROL_ISR_DISPATCH_DISABLE,
+ ARM_CONTEXT_CONTROL_ISR_DISPATCH_DISABLE
+ );
+#endif
+
#ifdef RTEMS_SMP
RTEMS_STATIC_ASSERT(
offsetof( Context_Control, is_executing )