[rtems commit] score: Adjust PER_CPU_CONTROL_SIZE_APPROX

Sebastian Huber sebh at rtems.org
Fri May 10 07:12:06 UTC 2019


Module:    rtems
Branch:    master
Commit:    dda1922fec6ae4f3368baa81bd73559a294a29d6
Changeset: http://git.rtems.org/rtems/commit/?id=dda1922fec6ae4f3368baa81bd73559a294a29d6

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri May 10 09:09:40 2019 +0200

score: Adjust PER_CPU_CONTROL_SIZE_APPROX

Account for recent Per_CPU_Control structure member additions.

---

 cpukit/include/rtems/score/percpu.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/cpukit/include/rtems/score/percpu.h b/cpukit/include/rtems/score/percpu.h
index 589d2ab..e97f6cd 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
 
   /*




More information about the vc mailing list