Changeset 911b1d2 in rtems


Ignore:
Timestamp:
Feb 17, 2014, 2:02:54 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
4d9bd56
Parents:
6ca4f6a
git-author:
Sebastian Huber <sebastian.huber@…> (02/17/14 14:02:54)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/19/14 08:59:41)
Message:

score: Rename rtems_smp_secondary_cpu_initialize()

Rename rtems_smp_secondary_cpu_initialize() into
_SMP_Start_multitasking_on_secondary_processor(). Move declaration to
<rtems/score/smpimpl.h>.

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/include/arm-a9mpcore-start.h

    r6ca4f6a r911b1d2  
    2525
    2626#include <rtems/bspsmp.h>
     27#include <rtems/score/smpimpl.h>
    2728
    2829#include <libcpu/arm-cp15.h>
     
    110111      arm_cp15_set_control(ctrl);
    111112
    112       rtems_smp_secondary_cpu_initialize();
     113      _SMP_Start_multitasking_on_secondary_processor();
    113114    } else {
    114115      /* FIXME: Shutdown processor */
  • c/src/lib/libbsp/i386/shared/smp/smp-imps.c

    r6ca4f6a r911b1d2  
    5757#include <bsp/smp-imps.h>
    5858#include <bsp/irq.h>
     59#include <rtems/score/smpimpl.h>
    5960
    6061/*
     
    784785#endif
    785786
    786   rtems_smp_secondary_cpu_initialize();
     787  _SMP_Start_multitasking_on_secondary_processor();
    787788}
    788789
  • c/src/lib/libbsp/powerpc/qoriq/startup/smp.c

    r6ca4f6a r911b1d2  
    1616
    1717#include <rtems/bspsmp.h>
     18#include <rtems/score/smpimpl.h>
    1819
    1920#include <libcpu/powerpc-utility.h>
     
    134135  bsp_interrupt_vector_enable(QORIQ_IRQ_IPI_0);
    135136
    136   rtems_smp_secondary_cpu_initialize();
     137  _SMP_Start_multitasking_on_secondary_processor();
    137138}
    138139
  • c/src/lib/libbsp/sparc/leon3/smp/smp_leon3.c

    r6ca4f6a r911b1d2  
    1818#include <rtems/bspIo.h>
    1919#include <rtems/bspsmp.h>
     20#include <rtems/score/smpimpl.h>
    2021#include <stdlib.h>
    2122
     
    4546  LEON3_IrqCtrl_Regs->mask[cpu] |= 1 << LEON3_MP_IRQ;
    4647
    47   rtems_smp_secondary_cpu_initialize();
     48  _SMP_Start_multitasking_on_secondary_processor();
    4849}
    4950
  • cpukit/score/include/rtems/bspsmp.h

    r6ca4f6a r911b1d2  
    5353
    5454/**
    55  * @brief Performs high-level initialization of a secondary processor and runs
    56  * the application threads.
    57  *
    58  * The low-level initialization code must call this function to hand over the
    59  * control of this processor to RTEMS.  Interrupts must be disabled.  It must
    60  * be possible to send inter-processor interrupts to this processor.  Since
    61  * interrupts are disabled the inter-processor interrupt delivery is postponed
    62  * until interrupts are enabled the first time.  Interrupts are enabled during
    63  * the execution begin of threads in case they have interrupt level zero (this
    64  * is the default).
    65  *
    66  * The pre-requisites for the call to this function are
    67  * - disabled interrupts,
    68  * - delivery of inter-processor interrupts is possible,
    69  * - a valid stack pointer and enough stack space,
    70  * - a valid code memory, and
    71  * - a valid BSS section.
    72  *
    73  * This function must not be called by the main processor.  This function does
    74  * not return to the caller.
    75  */
    76 void rtems_smp_secondary_cpu_initialize( void )
    77   RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
    78 
    79 /**
    8055 *  @brief Process the incoming interprocessor request.
    8156 *
  • cpukit/score/include/rtems/score/smpimpl.h

    r6ca4f6a r911b1d2  
    6464
    6565/**
     66 * @brief Performs high-level initialization of a secondary processor and runs
     67 * the application threads.
     68 *
     69 * The low-level initialization code must call this function to hand over the
     70 * control of this processor to RTEMS.  Interrupts must be disabled.  It must
     71 * be possible to send inter-processor interrupts to this processor.  Since
     72 * interrupts are disabled the inter-processor interrupt delivery is postponed
     73 * until interrupts are enabled the first time.  Interrupts are enabled during
     74 * the execution begin of threads in case they have interrupt level zero (this
     75 * is the default).
     76 *
     77 * The pre-requisites for the call to this function are
     78 * - disabled interrupts,
     79 * - delivery of inter-processor interrupts is possible,
     80 * - a valid stack pointer and enough stack space,
     81 * - a valid code memory, and
     82 * - a valid BSS section.
     83 *
     84 * This function must not be called by the main processor.  The main processor
     85 * uses _Thread_Start_multitasking() instead.
     86 *
     87 * This function does not return to the caller.
     88 */
     89void _SMP_Start_multitasking_on_secondary_processor( void )
     90  RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
     91
     92/**
    6693 *  @brief Sends a SMP message to a processor.
    6794 *
  • cpukit/score/src/smp.c

    r6ca4f6a r911b1d2  
    3131#endif
    3232
    33 void rtems_smp_secondary_cpu_initialize( void )
     33void _SMP_Start_multitasking_on_secondary_processor( void )
    3434{
    3535  Per_CPU_Control *self_cpu = _Per_CPU_Get();
Note: See TracChangeset for help on using the changeset viewer.