forked from Imagelibrary/rtems
sapi: Use rtems_*_get_user_multiprocessing_table
This commit is contained in:
@@ -63,7 +63,7 @@ void bsp_start( void )
|
|||||||
|
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
node_number = (uint8_t)
|
node_number = (uint8_t)
|
||||||
(Configuration.User_multiprocessing_table->node - 1) & 0xF;
|
(rtems_configuration_get_user_multiprocessing_table()->node - 1) & 0xF;
|
||||||
#else
|
#else
|
||||||
node_number = 1;
|
node_number = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ void Shm_Get_configuration(
|
|||||||
if (LEON3_Cpu_Index == 0) {
|
if (LEON3_Cpu_Index == 0) {
|
||||||
tmp = 0;
|
tmp = 0;
|
||||||
for (i = 1;
|
for (i = 1;
|
||||||
i < (Configuration.User_multiprocessing_table)->maximum_nodes; i++)
|
i < (rtems_configuration_get_user_multiprocessing_table())->maximum_nodes; i++)
|
||||||
tmp |= (1 << i);
|
tmp |= (1 << i);
|
||||||
LEON3_IrqCtrl_Regs->mpstat = tmp;
|
LEON3_IrqCtrl_Regs->mpstat = tmp;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ void rtems_initialize_data_structures(void)
|
|||||||
* In an MP configuration, internally we view single processor
|
* In an MP configuration, internally we view single processor
|
||||||
* systems as a very restricted multiprocessor system.
|
* 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 ) {
|
if ( _Configuration_MP_table == NULL ) {
|
||||||
_Configuration_MP_table =
|
_Configuration_MP_table =
|
||||||
|
|||||||
Reference in New Issue
Block a user