source: rtems/c/src/lib/libbsp/shared/smp/smp_stub.c @ 53e008b

4.115
Last change on this file since 53e008b was 53e008b, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 10, 2014 at 1:48:05 PM

score: SMP initialization changes

Add and use _CPU_SMP_Start_processor(). Add and use
_CPU_SMP_Finalize_initialization(). This makes most
_CPU_SMP_Initialize() functions a bit simpler since we can calculate the
minimum value of the count of processors requested by the application
configuration and the count of physically or virtually available
processors in the high-level code.

The CPU port has now the ability to signal a processor start failure.
With the support for clustered/partitioned scheduling the presence of
particular processors can be configured to be optional or mandatory.
There will be a fatal error only in case mandatory processors are not
present.

The CPU port may use a timeout to monitor the start of a processor.

  • Property mode set to 100644
File size: 616 bytes
Line 
1/*
2 *  RTEMS SMP Support for Single Core
3 *
4 *  COPYRIGHT (c) 1989-2011.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.org/license/LICENSE.
10 */
11
12#include <rtems/score/cpu.h>
13
14uint32_t _CPU_SMP_Initialize( void )
15{
16  /* return the number of CPUs */
17  return 1;
18}
19
20bool _CPU_SMP_Start_processor( uint32_t cpu_index )
21{
22  return true;
23}
24
25void _CPU_SMP_Finalize_initialization( uint32_t cpu_count )
26{
27}
28
29void _CPU_SMP_Send_interrupt( uint32_t target_processor_index )
30{
31}
Note: See TracBrowser for help on using the repository browser.