rtems: Add and use rtems_object_get_local_node()

Update #3841.
This commit is contained in:
Sebastian Huber
2019-12-12 06:37:01 +01:00
parent d24b30156d
commit a00dff42cf
40 changed files with 95 additions and 92 deletions

View File

@@ -41,7 +41,7 @@ Shm_Print_statistics(void)
packets_per_second++;
printk( "\n\nSHMDR STATISTICS (NODE %" PRId32 ")\n",
Multiprocessing_configuration.node );
rtems_object_get_local_node() );
printk( "TICKS SINCE BOOT = %" PRId32 "\n", ticks );
printk( "TICKS PER SECOND = %" PRId32 "\n", ticks_per_second );
printk( "ISRs=%" PRId32 "\n", Shm_Interrupt_count );

View File

@@ -46,7 +46,7 @@ rtems_mpci_entry Shm_Initialization( void )
uint32_t remaining_memory;
uint32_t local_node;
local_node = _Configuration_MP_table->node;
local_node = rtems_object_get_local_node();
Shm_Get_configuration( local_node, &Shm_Configuration );

View File

@@ -46,7 +46,7 @@ rtems_mpci_entry Shm_Send_packet(
}
else {
for( nnum = SHM_FIRST_NODE ; nnum <= SHM_MAXIMUM_NODES ; nnum++ )
if ( _Configuration_MP_table->node != nnum ) {
if ( rtems_object_get_local_node() != nnum ) {
struct pkt_cpy *pkt;
tmp_ecb = Shm_Allocate_envelope();