[PATCH 14/23] sapi: Use rtems_*_get_user_multiprocessing_table

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Nov 6 12:56:36 UTC 2012


---
 c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c |    2 +-
 c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c     |    2 +-
 cpukit/sapi/src/exinit.c                          |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c b/c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c
index d60513f..b1153a2 100644
--- a/c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c
+++ b/c/src/lib/libbsp/m68k/mvme147s/startup/bspstart.c
@@ -63,7 +63,7 @@ void bsp_start( void )
 
 #if defined(RTEMS_MULTIPROCESSING)
   node_number = (uint8_t)
-    (Configuration.User_multiprocessing_table->node - 1) & 0xF;
+    (rtems_configuration_get_user_multiprocessing_table()->node - 1) & 0xF;
 #else
    node_number = 1;
 #endif
diff --git a/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c b/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c
index 7e35352..60b47ca 100644
--- a/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c
+++ b/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c
@@ -124,7 +124,7 @@ void Shm_Get_configuration(
   if (LEON3_Cpu_Index == 0) {
     tmp = 0;
     for (i = 1;
-         i < (Configuration.User_multiprocessing_table)->maximum_nodes; i++)
+         i < (rtems_configuration_get_user_multiprocessing_table())->maximum_nodes; i++)
       tmp |= (1 << i);
     LEON3_IrqCtrl_Regs->mpstat = tmp;
   }
diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c
index 1aa7e54..7335128 100644
--- a/cpukit/sapi/src/exinit.c
+++ b/cpukit/sapi/src/exinit.c
@@ -79,7 +79,7 @@ void rtems_initialize_data_structures(void)
      *  In an MP configuration, internally we view single processor
      *  systems as a very restricted multiprocessor system.
      */
-    _Configuration_MP_table = Configuration.User_multiprocessing_table;
+    _Configuration_MP_table = rtems_configuration_get_user_multiprocessing_table();
 
     if ( _Configuration_MP_table == NULL ) {
       _Configuration_MP_table =
-- 
1.7.7




More information about the devel mailing list