Changeset c34f94f7 in rtems


Ignore:
Timestamp:
Feb 16, 2015, 10:55:03 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
8d6e6eeb
Parents:
a43a3466
git-author:
Sebastian Huber <sebastian.huber@…> (02/16/15 10:55:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/17/15 08:41:27)
Message:

score: Add _CPU_SMP_Prepare_start_multitasking()

Update #2268.

Files:
11 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/arm-a9mpcore-smp.c

    ra43a3466 rc34f94f7  
    5656}
    5757
     58void _CPU_SMP_Prepare_start_multitasking( void )
     59{
     60  /* Do nothing */
     61}
     62
    5863void _CPU_SMP_Send_interrupt( uint32_t target_processor_index )
    5964{
  • c/src/lib/libbsp/powerpc/qoriq/startup/bspsmp.c

    ra43a3466 rc34f94f7  
    229229}
    230230
     231void _CPU_SMP_Prepare_start_multitasking(void)
     232{
     233  /* Do nothing */
     234}
     235
    231236void _CPU_SMP_Send_interrupt(uint32_t target_processor_index)
    232237{
  • c/src/lib/libbsp/shared/bspsmp.c

    ra43a3466 rc34f94f7  
    2727}
    2828
     29void _CPU_SMP_Prepare_start_multitasking( void )
     30{
     31}
     32
    2933void _CPU_SMP_Send_interrupt( uint32_t target_processor_index )
    3034{
  • c/src/lib/libbsp/sparc/leon3/startup/bspsmp.c

    ra43a3466 rc34f94f7  
    8787}
    8888
     89void _CPU_SMP_Prepare_start_multitasking( void )
     90{
     91  _CPU_cache_invalidate_entire_instruction();
     92}
     93
    8994void _CPU_SMP_Send_interrupt(uint32_t target_processor_index)
    9095{
     
    9297  LEON3_IrqCtrl_Regs->force[target_processor_index] = 1 << LEON3_mp_irq;
    9398}
    94 
    95 void _LEON3_Start_multitasking(
    96   Context_Control *heir
    97 )
    98 {
    99   _CPU_cache_invalidate_entire_instruction();
    100   _CPU_Context_Restart_self( heir );
    101 }
  • cpukit/score/cpu/arm/rtems/score/cpu.h

    ra43a3466 rc34f94f7  
    504504
    505505  void _CPU_SMP_Finalize_initialization( uint32_t cpu_count );
     506
     507  void _CPU_SMP_Prepare_start_multitasking( void );
    506508
    507509  static inline uint32_t _CPU_SMP_Get_current_processor( void )
  • cpukit/score/cpu/i386/rtems/score/cpu.h

    ra43a3466 rc34f94f7  
    495495  void _CPU_SMP_Finalize_initialization( uint32_t cpu_count );
    496496
     497  void _CPU_SMP_Prepare_start_multitasking( void );
     498
    497499  uint32_t _CPU_SMP_Get_current_processor( void );
    498500
  • cpukit/score/cpu/no_cpu/rtems/score/cpu.h

    ra43a3466 rc34f94f7  
    15751575
    15761576  /**
     1577   * @brief Prepares a CPU to start multitasking in terms of SMP.
     1578   *
     1579   * This function is invoked on all processors requested by the application
     1580   * during system initialization.
     1581   *
     1582   * This function will be called after all processors requested by the
     1583   * application have been started right before the context switch to the first
     1584   * thread takes place.
     1585   */
     1586  void _CPU_SMP_Prepare_start_multitasking( void );
     1587
     1588  /**
    15771589   * @brief Returns the index of the current processor.
    15781590   *
  • cpukit/score/cpu/powerpc/rtems/score/cpu.h

    ra43a3466 rc34f94f7  
    11241124  void _CPU_SMP_Finalize_initialization( uint32_t cpu_count );
    11251125
     1126  void _CPU_SMP_Prepare_start_multitasking( void );
     1127
    11261128  static inline uint32_t _CPU_SMP_Get_current_processor( void )
    11271129  {
  • cpukit/score/cpu/sparc/rtems/score/cpu.h

    ra43a3466 rc34f94f7  
    11871187  void _CPU_SMP_Finalize_initialization( uint32_t cpu_count );
    11881188
     1189  void _CPU_SMP_Prepare_start_multitasking( void );
     1190
    11891191  #if defined(__leon__) && !defined(RTEMS_PARAVIRT)
    11901192    static inline uint32_t _CPU_SMP_Get_current_processor( void )
     
    11981200  void _CPU_SMP_Send_interrupt( uint32_t target_processor_index );
    11991201
    1200   #if defined(__leon__)
    1201   void _LEON3_Start_multitasking( Context_Control *heir )
    1202     RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
    1203   #define _CPU_Start_multitasking _LEON3_Start_multitasking
    1204   #endif
    1205 
    12061202  static inline void _CPU_SMP_Processor_event_broadcast( void )
    12071203  {
  • cpukit/score/src/threadstartmultitasking.c

    ra43a3466 rc34f94f7  
    6363
    6464#if defined(RTEMS_SMP)
     65  _CPU_SMP_Prepare_start_multitasking();
     66
    6567  /*
    6668   * The _CPU_Context_Restart_self() implementations usually assume that self
  • testsuites/smptests/smpfatal08/init.c

    ra43a3466 rc34f94f7  
    5757}
    5858
     59void _CPU_SMP_Prepare_start_multitasking(void)
     60{
     61  assert(0);
     62}
     63
    5964#if defined(RTEMS_PARAVIRT) \
    6065  || (!defined(__leon__) && !defined(__PPC__) && !defined(__arm__))
     
    6267{
    6368  return 0;
    64 }
    65 #endif
    66 
    67 #if defined(__leon__)
    68 void _LEON3_Start_multitasking(Context_Control *heir)
    69 {
    70   assert(0);
    7169}
    7270#endif
Note: See TracChangeset for help on using the changeset viewer.