summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/percpu.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-05-10 09:09:40 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-05-10 09:11:54 +0200
commitdda1922fec6ae4f3368baa81bd73559a294a29d6 (patch)
tree6e71ebd06558f764b84bb5a3d01e725be3605770 /cpukit/include/rtems/score/percpu.h
parentcf5d5d80937f0bdcd499b0237f7ed20057411f7a (diff)
downloadrtems-dda1922fec6ae4f3368baa81bd73559a294a29d6.tar.bz2
score: Adjust PER_CPU_CONTROL_SIZE_APPROX
Account for recent Per_CPU_Control structure member additions.
Diffstat (limited to 'cpukit/include/rtems/score/percpu.h')
-rw-r--r--cpukit/include/rtems/score/percpu.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/cpukit/include/rtems/score/percpu.h b/cpukit/include/rtems/score/percpu.h
index 589d2ab63d..e97f6cdfbd 100644
--- a/cpukit/include/rtems/score/percpu.h
+++ b/cpukit/include/rtems/score/percpu.h
@@ -38,11 +38,14 @@ extern "C" {
#if defined(RTEMS_SMP)
#if defined(RTEMS_PROFILING)
- #define PER_CPU_CONTROL_SIZE_APPROX ( 512 + CPU_INTERRUPT_FRAME_SIZE )
+ #define PER_CPU_CONTROL_SIZE_APPROX \
+ ( 512 + CPU_PER_CPU_CONTROL_SIZE + CPU_INTERRUPT_FRAME_SIZE )
#elif defined(RTEMS_DEBUG) || CPU_SIZEOF_POINTER > 4
- #define PER_CPU_CONTROL_SIZE_APPROX ( 256 + CPU_INTERRUPT_FRAME_SIZE )
+ #define PER_CPU_CONTROL_SIZE_APPROX \
+ ( 256 + CPU_PER_CPU_CONTROL_SIZE + CPU_INTERRUPT_FRAME_SIZE )
#else
- #define PER_CPU_CONTROL_SIZE_APPROX ( 128 + CPU_INTERRUPT_FRAME_SIZE )
+ #define PER_CPU_CONTROL_SIZE_APPROX \
+ ( 180 + CPU_PER_CPU_CONTROL_SIZE + CPU_INTERRUPT_FRAME_SIZE )
#endif
/*