Changeset 2cb95b5f in rtems


Ignore:
Timestamp:
Feb 17, 2014, 12:58:01 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
2afe065
Parents:
9eec2f3
git-author:
Sebastian Huber <sebastian.huber@…> (02/17/14 12:58:01)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/19/14 08:59:40)
Message:

score: Rename RTEMS_BSP_SMP_SHUTDOWN

Rename RTEMS_BSP_SMP_SHUTDOWN in SMP_MESSAGE_SHUTDOWN since SMP messages
have nothing to do with the BSP. Use UINT32_C() instead of casts.

Location:
cpukit/score
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/smp.h

    r9eec2f3 r2cb95b5f  
    3636
    3737/**
    38  *  This defines the bit which indicates the interprocessor interrupt
    39  *  has been requested so that this CPU will be shutdown.  This is done
    40  *  as part of rtems_executive_shutdown().
     38 * @brief SMP message to request a processor shutdown.
     39 *
     40 * @see _SMP_Send_message().
    4141 */
    42 #define RTEMS_BSP_SMP_SHUTDOWN                  0x04
     42#define SMP_MESSAGE_SHUTDOWN UINT32_C(0x1)
    4343
    4444#if !defined( ASM )
     
    5959  }
    6060#else
    61   #define _SMP_Get_processor_count() ( ( uint32_t ) 1 )
     61  #define _SMP_Get_processor_count() UINT32_C(1)
    6262#endif
    6363
     
    121121  }
    122122#else
    123   #define _SMP_Get_current_processor() ( ( uint32_t ) 0 )
     123  #define _SMP_Get_current_processor() UINT32_C(0)
    124124#endif
    125125
  • cpukit/score/src/smp.c

    r9eec2f3 r2cb95b5f  
    6262      {
    6363        void *sp = __builtin_frame_address(0);
    64         if ( !(message & RTEMS_BSP_SMP_SHUTDOWN) ) {
     64        if ( !(message & SMP_MESSAGE_SHUTDOWN) ) {
    6565          printk(
    6666            "ISR on CPU %d -- (0x%02x) (0x%p)\n",
     
    6969            sp
    7070          );
    71           if ( message & RTEMS_BSP_SMP_SHUTDOWN )
     71          if ( message & SMP_MESSAGE_SHUTDOWN )
    7272            printk( "shutdown\n" );
    7373        }
     
    7676    #endif
    7777
    78     if ( ( message & RTEMS_BSP_SMP_SHUTDOWN ) != 0 ) {
     78    if ( ( message & SMP_MESSAGE_SHUTDOWN ) != 0 ) {
    7979      _Per_CPU_Change_state( self_cpu, PER_CPU_STATE_SHUTDOWN );
    8080
     
    150150
    151151      if ( per_cpu->state != PER_CPU_STATE_BEFORE_INITIALIZATION ) {
    152         _SMP_Send_message( cpu, RTEMS_BSP_SMP_SHUTDOWN );
     152        _SMP_Send_message( cpu, SMP_MESSAGE_SHUTDOWN );
    153153      }
    154154    }
Note: See TracChangeset for help on using the changeset viewer.